solve issue with backslashes in paths

This commit is contained in:
lotte
2019-06-06 13:55:01 +02:00
parent 25edc3c952
commit 5bd1e050fe

View File

@@ -80,7 +80,10 @@ const themedTest = (origPath, extension) => {
const themedUse = (resource, extension) => {
const origPath = path.parse(resource);
const themedPath = getThemedPath(resource, extension);
let themedPath = getThemedPath(resource, extension);
/* Make sure backslashes are escaped twice, because the replace unescapes those again */
themedPath = themedPath.replace(/\\/g, '\\\\');
return [
{