micromatch
Advanced tools
Comparing version 3.1.3 to 3.1.4
@@ -299,15 +299,15 @@ 'use strict'; | ||
utils.unixify = function(options) { | ||
var opts = options || {}; | ||
options = options || {}; | ||
return function(filepath) { | ||
if (opts.stripPrefix !== false) { | ||
if (utils.isWindows() || options.unixify === true) { | ||
filepath = utils.toPosixPath(filepath); | ||
} | ||
if (options.stripPrefix !== false) { | ||
filepath = utils.stripPrefix(filepath); | ||
} | ||
if (opts.unescape === true) { | ||
if (options.unescape === true) { | ||
filepath = utils.unescape(filepath); | ||
} | ||
if (opts.unixify === true || utils.isWindows()) { | ||
filepath = utils.toPosixPath(filepath); | ||
} | ||
return filepath; | ||
}; | ||
}; |
{ | ||
"name": "micromatch", | ||
"description": "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.", | ||
"version": "3.1.3", | ||
"version": "3.1.4", | ||
"homepage": "https://github.com/micromatch/micromatch", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
85004