diff --git a/plugins/c9.core/util.js b/plugins/c9.core/util.js index 4e37bb0b..cec28160 100644 --- a/plugins/c9.core/util.js +++ b/plugins/c9.core/util.js @@ -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, "~")); }; /**