Fix previous release

This commit is contained in:
Joseph Garrone
2021-03-22 20:00:58 +01:00
parent a2db250600
commit 1049e312f9
2 changed files with 3 additions and 3 deletions

View File

@ -11,8 +11,8 @@ export function replaceImportFromStaticInJsCode(
const { jsCode, ftlValuesGlobalName } = params;
const fixedJsCode = jsCode!.replace(
/ [^ ]+"static\//g,
` window.${ftlValuesGlobalName}.url.resourcesPath + "/build/static/`
/[a-z]+\.[a-z]+\+"static\//g,
`window.${ftlValuesGlobalName}.url.resourcesPath + "/build/static/`
);
return { fixedJsCode };