Skip to content

some case wrong #6

@xinshangshangxin

Description

@xinshangshangxin

like next line RegExp, which with repeat symbol ( + or * ), it will be wrong
/(ba)+.(a*)/

regexp.execForAllGroups('bababaaaaa', true);
matches:  [ { match: 'ba', start: 0, end: 2 },
  { match: 'aaa', start: 3, end: 6 } ]

I think the regexp should change to /((ba)+).(a*)/ when calculate the next match position

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions