Should not return captured values for non-matching alternations
ColinEberhardt opened this issue · 2 comments
ColinEberhardt commented
Current behaviour - (a|b)c|a(b|c)
when executed against ab
returns values from both capture groups
ColinEberhardt commented
Another example of the same issue:
const regexObj = new RegExp("([abc])*bcd");
const match = regexObj.exec("abcd");
ColinEberhardt commented
closed by be6f7b5