diff options
author | Ananya Sen | 2012-02-14 14:53:32 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-14 14:53:32 -0800 |
commit | ec14eff9831026600ba4cf71810444d54e143e04 (patch) | |
tree | 6ae808fdc7e8e892f177aeeade0d39ab117bda11 /js/io/system | |
parent | ffe7ddf30aeb2b89d49a91c76406aed93f6bed7a (diff) | |
download | ninja-ec14eff9831026600ba4cf71810444d54e143e04.tar.gz |
allow / in windows directory path
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/system')
-rwxr-xr-x | js/io/system/coreioapi.js | 2 |
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;} |