From 630cc9e68d09f8472d54bf203bcd125305d0817e Mon Sep 17 00:00:00 2001 From: Bobby Date: Tue, 20 Apr 2021 12:50:08 +1000 Subject: [PATCH] ft-builder fix spark traiding ";" issue --- ft_build/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",