Skip to content

Commit

Permalink
Merge pull request hexojs#203 from mcfog/master
Browse files Browse the repository at this point in the history
fix `generate --watch` for win32 platform
  • Loading branch information
tommy351 committed Jun 16, 2013
2 parents 7b52cb4 + 092cda6 commit 4d10b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ module.exports = function(options, callback){
path: sourceDir,
ignoreHiddenFiles: true,
listener: function(type, source){
var path = source.substring(sourceDir.length);
var path = source.substring(sourceDir.length).replace(pathFn.sep || (process.platform === "win32" ? '\\' : '/'), '/');

clearTimeout(timer);

Expand Down

0 comments on commit 4d10b39

Please sign in to comment.