From 9a2f52bcd5c93d45d7e7147d3846599d9ebe58b3 Mon Sep 17 00:00:00 2001 From: nightwing Date: Sat, 27 May 2017 20:41:41 +0400 Subject: [PATCH] normalize path before matching against home path --- plugins/c9.core/util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/c9.core/util.js b/plugins/c9.core/util.js index da1fba99..656dce65 100644 --- a/plugins/c9.core/util.js +++ b/plugins/c9.core/util.js @@ -246,13 +246,14 @@ define(function(require, exports, module) { plugin.normalizePath = function(path) { if (!path) return ""; + path = normalize(path); if (reHome) { path = path.replace(reHome, homeSub); if (reWorkspace) { path = path.replace(reWorkspace, "/"); } } - return normalize(path); + return path; }; /**