Permalink
Browse files

Fixing replacing of \ to / on windows. String.replace('\\', '/') was …

…replacing only the first occurrence.

see http://davidwalsh.name/javascript-replace
  • Loading branch information...
1 parent 3ccae73 commit 245e6009ebe2e0c33652244082e676d170b5d7a1 @tgeorgiev tgeorgiev committed Jan 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fake-fs.js
View
@@ -5,7 +5,7 @@ var join = PATH.join
var dirname = PATH.dirname
function resolve (p) {
- return PATH.resolve(p).replace('\\', '/') // Windows support
+ return PATH.resolve(p).replace(/\\/g, '/') // Windows support
}
function FsError (code) {

0 comments on commit 245e600

Please sign in to comment.