cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject [1/2] cordova-plugin-file-transfer git commit: Replace all slashes in windows path
Date Thu, 07 May 2015 06:24:29 GMT
Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/master f9dfd2d51 -> 3effd7f1f


Replace all slashes in windows path

Instead of just the first one

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/569568f8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/569568f8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/569568f8

Branch: refs/heads/master
Commit: 569568f8b437ec0a0248b4017479b5421456e619
Parents: decdd22
Author: Jan Visser <starquake@linuxeverywhere.org>
Authored: Wed Apr 1 12:50:37 2015 +0200
Committer: Jan Visser <starquake@linuxeverywhere.org>
Committed: Wed Apr 1 12:50:37 2015 +0200

----------------------------------------------------------------------
 src/windows/FileTransferProxy.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/569568f8/src/windows/FileTransferProxy.js
----------------------------------------------------------------------
diff --git a/src/windows/FileTransferProxy.js b/src/windows/FileTransferProxy.js
index 659e5c9..d11a026 100644
--- a/src/windows/FileTransferProxy.js
+++ b/src/windows/FileTransferProxy.js
@@ -312,7 +312,7 @@ exec(win, fail, 'FileTransfer', 'upload',
 
                     var nativeURI = storageFile.path.replace(appData.localFolder.path, 'ms-appdata:///local')
                         .replace(appData.temporaryFolder.path, 'ms-appdata:///temp')
-                        .replace('\\', '/');
+                        .replace(/\\/g, '/');
 
                     // Passing null as error callback here because downloaded file should
exist in any case
                     // otherwise the error callback will be hit during file creation in another
place


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message