forked from nock/nock
-
Notifications
You must be signed in to change notification settings - Fork 0
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: nock#2134
- Loading branch information
1 parent
20e9f8a
commit 970ecb0
Showing
2 changed files
with
17 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