minimatch 3.0.6 → 3.0.7
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/minimatch.js +2 -6
- package/package.json +4 -1
package/minimatch.js
CHANGED
|
@@ -306,7 +306,7 @@ function parse (pattern, isSub) {
|
|
|
306
306
|
if (pattern === '') return ''
|
|
307
307
|
|
|
308
308
|
var re = ''
|
|
309
|
-
var hasMagic =
|
|
309
|
+
var hasMagic = !!options.nocase
|
|
310
310
|
var escaping = false
|
|
311
311
|
// ? => one single character
|
|
312
312
|
var patternListStack = []
|
|
@@ -891,11 +891,7 @@ Minimatch.prototype.matchOne = function (file, pattern, partial) {
|
|
|
891
891
|
// patterns with magic have been turned into regexps.
|
|
892
892
|
var hit
|
|
893
893
|
if (typeof p === 'string') {
|
|
894
|
-
|
|
895
|
-
hit = f.toLowerCase() === p.toLowerCase()
|
|
896
|
-
} else {
|
|
897
|
-
hit = f === p
|
|
898
|
-
}
|
|
894
|
+
hit = f === p
|
|
899
895
|
this.debug('string match', p, f, hit)
|
|
900
896
|
} else {
|
|
901
897
|
hit = f.match(p)
|
package/package.json
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
|
|
3
3
|
"name": "minimatch",
|
|
4
4
|
"description": "a glob matcher in javascript",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.7",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"tag": "v3.0-legacy"
|
|
8
|
+
},
|
|
6
9
|
"repository": {
|
|
7
10
|
"type": "git",
|
|
8
11
|
"url": "git://github.com/isaacs/minimatch.git"
|