Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 245e6009ebe2e0c33652244082e676d170b5d7a1 1 parent 3ccae73
@tgeorgiev tgeorgiev authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/fake-fs.js
View
2  lib/fake-fs.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.