fast-ignore
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -16,3 +16,3 @@ /* IMPORT */ | ||
const ClassNegation = match(/[!^]/, '^'); | ||
const ClassRange = match(/[a-z]-[a-z]|[0-9]-[0-9]/i, passthrough); | ||
const ClassRange = match(/[0-9a-z]-[0-9a-z]/i, passthrough); | ||
const ClassEscape = match(/[$.*+?^(){}[\|]/, escape); | ||
@@ -19,0 +19,0 @@ const ClassPassthrough = match(/[^\]]/, passthrough); |
@@ -5,3 +5,3 @@ { | ||
"description": "A fast parser and processor for .gitignore files.", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "main": "dist/index.js", |
@@ -26,3 +26,3 @@ | ||
const ClassNegation = match ( /[!^]/, '^' ); | ||
const ClassRange = match ( /[a-z]-[a-z]|[0-9]-[0-9]/i, passthrough ); | ||
const ClassRange = match ( /[0-9a-z]-[0-9a-z]/i, passthrough ); | ||
const ClassEscape = match ( /[$.*+?^(){}[\|]/, escape ); | ||
@@ -29,0 +29,0 @@ const ClassPassthrough = match ( /[^\]]/, passthrough ); |
@@ -74,5 +74,12 @@ | ||
t.is ( glob ( 'foo[0-z]bar', 'fooabar' ), true ); | ||
t.is ( glob ( 'foo[0-z]bar', 'fooAbar' ), true ); | ||
t.is ( glob ( 'foo[0-z]bar', 'foo9bar' ), true ); | ||
t.is ( glob ( 'foo[0-z]bar', 'foo>bar' ), true ); | ||
t.is ( glob ( 'foo[0-z]bar', 'fooaabar' ), false ); | ||
t.is ( glob ( 'foo[a-zA-Z0-9]bar', 'fooabar' ), true ); | ||
t.is ( glob ( 'foo[a-zA-Z0-9]bar', 'fooAbar' ), true ); | ||
t.is ( glob ( 'foo[a-zA-Z0-9]bar', 'foo9bar' ), true ); | ||
t.is ( glob ( 'foo[a-zA-Z0-9]bar', 'foo>bar' ), false ); | ||
t.is ( glob ( 'foo[a-zA-Z0-9]bar', 'fooaabar' ), false ); | ||
@@ -79,0 +86,0 @@ |
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
34506
731