minimatch
Advanced tools
Comparing version 6.1.10 to 6.2.0
@@ -14,2 +14,3 @@ export interface MinimatchOptions { | ||
nocase?: boolean; | ||
nocaseMagicOnly?: boolean; | ||
matchBase?: boolean; | ||
@@ -16,0 +17,0 @@ flipNegate?: boolean; |
@@ -902,3 +902,3 @@ "use strict"; | ||
// if it's nocase, and the lcase/uppercase don't match, it's magic | ||
if (options.nocase && !hasMagic) { | ||
if (options.nocase && !hasMagic && !options.nocaseMagicOnly) { | ||
hasMagic = pattern.toUpperCase() !== pattern.toLowerCase(); | ||
@@ -905,0 +905,0 @@ } |
@@ -14,2 +14,3 @@ export interface MinimatchOptions { | ||
nocase?: boolean; | ||
nocaseMagicOnly?: boolean; | ||
matchBase?: boolean; | ||
@@ -16,0 +17,0 @@ flipNegate?: boolean; |
@@ -890,3 +890,3 @@ export const minimatch = (p, pattern, options = {}) => { | ||
// if it's nocase, and the lcase/uppercase don't match, it's magic | ||
if (options.nocase && !hasMagic) { | ||
if (options.nocase && !hasMagic && !options.nocaseMagicOnly) { | ||
hasMagic = pattern.toUpperCase() !== pattern.toLowerCase(); | ||
@@ -893,0 +893,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "a glob matcher in javascript", | ||
"version": "6.1.10", | ||
"version": "6.2.0", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -190,2 +190,12 @@ # minimatch | ||
### nocaseMagicOnly | ||
When used with `{nocase: true}`, create regular expressions that | ||
are case-insensitive, but leave string match portions untouched. | ||
Has no effect when used without `{nocase: true}` | ||
Useful when some other form of case-insensitive matching is used, | ||
or if the original string representation is useful in some other | ||
way. | ||
### nonull | ||
@@ -192,0 +202,0 @@ |
Sorry, the diff of this file is not supported yet
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
177844
2348
308