Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(intercept): handle global flags during regexp matching
When matching via a regexp instance, consistently test the entire target string. Sets the `lastIndex` to zero for cases where the `global` flag is set and the regexp instance has been tested previously. fixes: #2134
- Loading branch information
1 parent
ad7e481
commit ea2194c
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters