aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnanya Sen2012-02-14 14:53:32 -0800
committerAnanya Sen2012-02-14 14:53:32 -0800
commitec14eff9831026600ba4cf71810444d54e143e04 (patch)
tree6ae808fdc7e8e892f177aeeade0d39ab117bda11
parentffe7ddf30aeb2b89d49a91c76406aed93f6bed7a (diff)
downloadninja-ec14eff9831026600ba4cf71810444d54e143e04.tar.gz
allow / in windows directory path
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
-rwxr-xr-xjs/io/system/coreioapi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js
index 614b0850..ea9627cc 100755
--- a/js/io/system/coreioapi.js
+++ b/js/io/system/coreioapi.js
@@ -1101,7 +1101,7 @@ window.hack = function (name, type) {
1101 uri = uri.replace(/^\s+|\s+$/g,""); // strip any leading or trailing spaces 1101 uri = uri.replace(/^\s+|\s+$/g,""); // strip any leading or trailing spaces
1102 1102
1103 //for local machine folder uri 1103 //for local machine folder uri
1104 isWindowsUri = /^([a-zA-Z]:)(\\[^<>:"/\\|?*]+)*\\?$/gi.test(uri); 1104 isWindowsUri = /^([a-zA-Z]:)([\\/][^<>:"/\\|?*]+)*[\\/]?$/gi.test(uri);
1105 isUnixUri = /^(\/)?(\/(?![.])[^/]*)*\/?$/gi.test(uri);//folders beginning with . are hidden on Mac / Unix 1105 isUnixUri = /^(\/)?(\/(?![.])[^/]*)*\/?$/gi.test(uri);//folders beginning with . are hidden on Mac / Unix
1106 status = isWindowsUri || isUnixUri; 1106 status = isWindowsUri || isUnixUri;
1107 if(isWindowsUri && isUnixUri){status = false;} 1107 if(isWindowsUri && isUnixUri){status = false;}