Browse Source

Fixes filepathReplace

master
Gaëtan Renaudeau 7 years ago
parent
commit
d37e305604
  1. 2
      src/helpers/anonymizer.js

2
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)

Loading…
Cancel
Save