forked from isaacs/minimatch
-
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.
makeRe globstar should match zero+ path portions
This implements the requisite negative lookahead/behind using JavaScript while building the regexp, so that the regexp returned by makeRe will be able to match ** patterns against zero or more path portions, rather than against 1 or more, which was previously a shortcoming of makeRe. Also, move the pattern regexp tests into snapshots, where they belong. Fix: isaacs#157
- Loading branch information
Showing
5 changed files
with
503 additions
and
117 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
Oops, something went wrong.