Skip to content

Incorrect nested regexp submatch #2106

@stephenPspackman

Description

@stephenPspackman
/(a(b))/.exec('ab')
=[
  "ab",
  "",
  "b", index: 0,
  input: "ab"
 ]

The first reported submatch should be "ab", not "".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Standards IssueA place where Espruino doesn't conform to the ECMAscript standard

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions