minimatch 4.1.0 → 4.1.1
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/LICENSE +1 -1
- package/minimatch.js +3 -6
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The ISC License
|
|
2
2
|
|
|
3
|
-
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
3
|
+
Copyright (c) 2011-2022 Isaac Z. Schlueter and Contributors
|
|
4
4
|
|
|
5
5
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
6
|
purpose with or without fee is hereby granted, provided that the above
|
package/minimatch.js
CHANGED
|
@@ -17,6 +17,7 @@ const path = (() => { try { return require('path') } catch (e) {}})() || {
|
|
|
17
17
|
minimatch.sep = path.sep
|
|
18
18
|
|
|
19
19
|
const GLOBSTAR = Symbol('globstar **')
|
|
20
|
+
minimatch.GLOBSTAR = GLOBSTAR
|
|
20
21
|
const expand = require('brace-expansion')
|
|
21
22
|
|
|
22
23
|
const plTypes = {
|
|
@@ -363,11 +364,7 @@ class Minimatch {
|
|
|
363
364
|
// patterns with magic have been turned into regexps.
|
|
364
365
|
var hit
|
|
365
366
|
if (typeof p === 'string') {
|
|
366
|
-
|
|
367
|
-
hit = f.toLowerCase() === p.toLowerCase()
|
|
368
|
-
} else {
|
|
369
|
-
hit = f === p
|
|
370
|
-
}
|
|
367
|
+
hit = f === p
|
|
371
368
|
this.debug('string match', p, f, hit)
|
|
372
369
|
} else {
|
|
373
370
|
hit = f.match(p)
|
|
@@ -430,7 +427,7 @@ class Minimatch {
|
|
|
430
427
|
if (pattern === '') return ''
|
|
431
428
|
|
|
432
429
|
let re = ''
|
|
433
|
-
let hasMagic =
|
|
430
|
+
let hasMagic = !!options.nocase
|
|
434
431
|
let escaping = false
|
|
435
432
|
// ? => one single character
|
|
436
433
|
const patternListStack = []
|
package/package.json
CHANGED