diff options
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 6dcd795e..507804fd 100755 --- a/js/io/system/coreioapi.js +++ b/js/io/system/coreioapi.js | |||
@@ -1103,7 +1103,7 @@ window.hack = function (path) { | |||
1103 | uri = uri.replace(/^\s+|\s+$/g,""); // strip any leading or trailing spaces | 1103 | uri = uri.replace(/^\s+|\s+$/g,""); // strip any leading or trailing spaces |
1104 | 1104 | ||
1105 | //for local machine folder uri | 1105 | //for local machine folder uri |
1106 | isWindowsUri = /^([a-zA-Z]:)(\\[^<>:"/\\|?*]+)*\\?$/gi.test(uri); | 1106 | isWindowsUri = /^([a-zA-Z]:)([\\/][^<>:"/\\|?*]+)*[\\/]?$/gi.test(uri); |
1107 | isUnixUri = /^(\/)?(\/(?![.])[^/]*)*\/?$/gi.test(uri);//folders beginning with . are hidden on Mac / Unix | 1107 | isUnixUri = /^(\/)?(\/(?![.])[^/]*)*\/?$/gi.test(uri);//folders beginning with . are hidden on Mac / Unix |
1108 | status = isWindowsUri || isUnixUri; | 1108 | status = isWindowsUri || isUnixUri; |
1109 | if(isWindowsUri && isUnixUri){status = false;} | 1109 | if(isWindowsUri && isUnixUri){status = false;} |