minimatch 4.2.3 → 4.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/minimatch.js +3 -0
- package/package.json +1 -1
package/minimatch.js
CHANGED
|
@@ -528,6 +528,9 @@ class Minimatch {
|
|
|
528
528
|
continue
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
+
// coalesce consecutive non-globstar * characters
|
|
532
|
+
if (c === '*' && stateChar === '*') continue
|
|
533
|
+
|
|
531
534
|
// if we already have a stateChar, then it means
|
|
532
535
|
// that there was something like ** or +? in there.
|
|
533
536
|
// Handle the stateChar, then proceed with this one.
|