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.
fix: need two parts following a **/.. to optimize
If **/../p is expanded to {**,..}/p, then that means that it can match p even if the directory that contains p doesn't have any child directories to have fallen up into its parent with the .. However, if there are *two* parts following the **/.. then that means that **/../p/q will mean that there must have been child directories in p's parent, because p is a child directory in p's parent, and the required walking overhead is cut in half as before.
- Loading branch information
Showing
3 changed files
with
475 additions
and
16 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
Oops, something went wrong.