@jsenv/url-meta
Advanced tools
Comparing version 5.1.1 to 5.2.0
@@ -194,5 +194,12 @@ 'use strict'; | ||
// pass because trailing slash matches remaining | ||
return pass({ | ||
patternIndex: patternIndex + 1, | ||
index: string.length | ||
if (remainingString[0] === "/") { | ||
return pass({ | ||
patternIndex: patternIndex + 1, | ||
index: string.length | ||
}); | ||
} | ||
return fail({ | ||
patternIndex: patternIndex, | ||
index: index | ||
}); | ||
@@ -199,0 +206,0 @@ } // fast path trailing '**' |
{ | ||
"name": "@jsenv/url-meta", | ||
"version": "5.1.1", | ||
"version": "5.2.0", | ||
"description": "Associate data to urls using patterns.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -68,5 +68,12 @@ // https://git-scm.com/docs/gitignore | ||
// pass because trailing slash matches remaining | ||
return pass({ | ||
patternIndex: patternIndex + 1, | ||
index: string.length, | ||
if (remainingString[0] === "/") { | ||
return pass({ | ||
patternIndex: patternIndex + 1, | ||
index: string.length, | ||
}) | ||
} | ||
return fail({ | ||
patternIndex, | ||
index, | ||
}) | ||
@@ -73,0 +80,0 @@ } |
Sorry, the diff of this file is not supported yet
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
55008
249
842