minimatch
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -20,2 +20,3 @@ const minimatch = module.exports = (p, pattern, options = {}) => { | ||
const GLOBSTAR = Symbol('globstar **') | ||
minimatch.GLOBSTAR = GLOBSTAR | ||
const expand = require('brace-expansion') | ||
@@ -367,7 +368,3 @@ | ||
if (typeof p === 'string') { | ||
if (options.nocase) { | ||
hit = f.toLowerCase() === p.toLowerCase() | ||
} else { | ||
hit = f === p | ||
} | ||
hit = f === p | ||
this.debug('string match', p, f, hit) | ||
@@ -435,3 +432,3 @@ } else { | ||
let re = '' | ||
let hasMagic = false | ||
let hasMagic = !!options.nocase | ||
let escaping = false | ||
@@ -438,0 +435,0 @@ // ? => one single character |
@@ -5,3 +5,3 @@ { | ||
"description": "a glob matcher in javascript", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
34851
735