ft-builder fix spark traiding ";" issue

This commit is contained in:
Bobby
2021-04-20 12:50:08 +10:00
parent 67bce3b644
commit 630cc9e68d

View File

@@ -75,7 +75,7 @@ function parseSparksConfig(
// remove leading "sparks.config(" and trailing ")"
return sparks
.replace(/^(\s*)sparks.config\(/, "")
.replace(/\)(\s*)+$/, "");
.replace(/\);?\s*$/, "");
} catch (error) {
logErrorToDB({
errorDescription: "Sparks is not wrapped with sparks.config",