normalize paths for home dir too

This commit is contained in:
nightwing 2015-04-16 02:18:31 +04:00 committed by nightwing
parent ac7410a728
commit 0ec868b119

View File

@ -277,8 +277,7 @@ define(function(require, exports, module) {
var reHome = new RegExp("^" + plugin.escapeRegExp(c9.home || "/home/ubuntu"));
plugin.normalizePath = function(path){
if (!path || path.charAt(0) == "~") return path;
return normalize(path.replace(reHome, "~"));
return path && normalize(path.replace(reHome, "~"));
};
/**