From d37e3056049eb52725424f71ac14d41d8b76cb1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Tue, 24 Jul 2018 17:12:21 +0200 Subject: [PATCH] Fixes filepathReplace --- src/helpers/anonymizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/anonymizer.js b/src/helpers/anonymizer.js index c0602449..693195a9 100644 --- a/src/helpers/anonymizer.js +++ b/src/helpers/anonymizer.js @@ -21,7 +21,7 @@ function filepathReplace(path: string) { if (!path) return path const replaced = Object.keys(basePaths).reduce((path, name) => { const p = basePaths[name] - return replaced + return path .replace(p, name) // normal replace of the path .replace(encodeURI(p.replace(/\\/g, '/')), name) // replace of the URI version of the path (that are in file:///) }, path)