From 7b14f3a7e8f23dcc9bc6d6f8470239dfa1876104 Mon Sep 17 00:00:00 2001 From: Thierry Charbonnel Date: Sun, 24 Dec 2023 11:15:20 -0500 Subject: [PATCH] chore: resolving merge conflict --- docs/ui/src/js/createOutputParameters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ui/src/js/createOutputParameters.js b/docs/ui/src/js/createOutputParameters.js index f68e8dc5..abc44b16 100644 --- a/docs/ui/src/js/createOutputParameters.js +++ b/docs/ui/src/js/createOutputParameters.js @@ -59,13 +59,13 @@ function createJSOutput() { let paramOutputString = `${joinedDeclarations} -let ${themeName.replace(/\s/g, '')} = new Leo.Theme({ +let ${themeName.replace(/[^a-zA-Z0-9_$]/g, '_')} = new Leo.Theme({ colors: [${colorNames.map((n) => camelCase(n))}], backgroundColor: ${camelCase(_theme.backgroundColor.name)}, lightness: ${_theme.lightness}, contrast: ${_theme.contrast}, saturation: ${_theme.saturation}, - output: "${_theme.output}" + output: "${_theme.output}," formula: "${_theme.formula}" });`;