ColinEberhardt/assemblyscript-regex

Should not return captured values for non-matching alternations

ColinEberhardt opened this issue · 2 comments

Current behaviour - (a|b)c|a(b|c) when executed against ab returns values from both capture groups

Another example of the same issue:

const regexObj = new RegExp("([abc])*bcd");
const match = regexObj.exec("abcd");