diff --git a/ft_build/utils.ts b/ft_build/utils.ts index 0c93cd6f..2114ef1a 100644 --- a/ft_build/utils.ts +++ b/ft_build/utils.ts @@ -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",