Skip to content

Commit 774c9ed

Browse files
committed
added rule to replace forward slashes only for win
1 parent c17c0f2 commit 774c9ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/RemoteSync.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ class RemoteSync
215215
setupAutoFileWatch: (filesName,projectPath) ->
216216
_this = @
217217
setTimeout ->
218-
filesName = filesName.replace(/\//g, '\\')
218+
if process.platform == "win32"
219+
filesName = filesName.replace(/\//g, '\\')
219220
fullpath = projectPath + filesName.replace /^\s+|\s+$/g, ""
220221
_this.monitorFile(fullpath,false,false)
221222
, 250

0 commit comments

Comments
 (0)