aboutsummaryrefslogtreecommitdiff
path: root/js/io
diff options
context:
space:
mode:
authorAnanya Sen2012-02-14 15:21:18 -0800
committerAnanya Sen2012-02-14 15:21:18 -0800
commitbd18d46b502d3c216fbffbd9e0be4eefc07ca4ea (patch)
treec8c9f9af761457e3c5f4c6774fb0fbba851df0c4 /js/io
parentf059d6ae73b7e88bb6562cabe0f9ca00603647b8 (diff)
downloadninja-bd18d46b502d3c216fbffbd9e0be4eefc07ca4ea.tar.gz
allow / for window directory path format
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io')
-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;}