Comparing version 3.1.1 to 3.1.2
@@ -302,9 +302,11 @@ 'use strict'; | ||
// two globstars | ||
[/\\\/\\\*\\\*(\\\/|$)/g, | ||
[/\\\/\\\*\\\*(?=\\\/|$)/g, | ||
// Zero, one or several directories | ||
// should not use '*', or it will be replaced by the next replacer | ||
function (m, p1) { | ||
return p1 === '\\/' | ||
function (m, index, str) { | ||
// Check if it is not the last `'/**'` | ||
return index + 6 < str.length | ||
// case: /**/ | ||
@@ -314,7 +316,9 @@ // > A slash followed by two consecutive asterisks then a slash matches zero or more directories. | ||
// '/**/' | ||
? '(?:\\/[^\\/]+)*\\/' | ||
? '(?:\\/[^\\/]+)*' | ||
// case: /** | ||
// > A trailing `"/**"` matches everything inside. | ||
: '\\/'; | ||
// #21: everything inside but it should not include the current folder | ||
: '\\/.+'; | ||
}], | ||
@@ -321,0 +325,0 @@ |
{ | ||
"name": "ignore", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Ignore is a manager and filter for .gitignore rules.", | ||
@@ -5,0 +5,0 @@ "main": "./ignore.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18400
319