Skip to content

Commit

Permalink
Fix: Use path.sep instead of '/' for correct Windows pathing
Browse files Browse the repository at this point in the history
  • Loading branch information
danivek authored and phated committed Feb 21, 2017
1 parent 9ef13d1 commit e618a8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var glob = require('glob');
var micromatch = require('micromatch');
var resolveGlob = require('to-absolute-glob');
var globParent = require('glob-parent');
var path = require('path');
var extend = require('extend');

var gs = {
Expand All @@ -23,7 +24,7 @@ var gs = {
var globber = new glob.Glob(ourGlob, ourOpt);

// Extract base path from glob
var basePath = opt.base || globParent(ourGlob) + '/';
var basePath = opt.base || globParent(ourGlob) + path.sep;

// Create stream and map events from globber to it
var stream = through2.obj(opt,
Expand Down

0 comments on commit e618a8d

Please sign in to comment.