Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Aug 24, 2016
1 parent 7419cac commit 199800d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var micromatch = require('micromatch');
var normalize = require('normalize-path');
var separator = require('path').sep;
var path = require('path');
var arrify = function(a) { return a == null ? [] : (Array.isArray(a) ? a : [a]); };

var anymatch = function(criteria, value, returnIndex, startIndex, endIndex) {
Expand Down Expand Up @@ -54,7 +54,7 @@ var anymatch = function(criteria, value, returnIndex, startIndex, endIndex) {
return arr;
}, []);
if (!negGlobs.length || !micromatch.any(string, negGlobs)) {
if (separator === '\\' && typeof string === 'string') {
if (path.sep === '\\' && typeof string === 'string') {
altString = normalize(string);
altString = altString === string ? null : altString;
if (altString) altValue = [altString].concat(value.slice(1));
Expand Down

0 comments on commit 199800d

Please sign in to comment.