Skip to content

Commit

Permalink
trim spaces from color value
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Herwege <[email protected]>
  • Loading branch information
mherwege committed Sep 25, 2023
1 parent 881a8b7 commit f575bda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function writeWidget (widget, indent) {
dsl += '['
dsl += widget.config[key].filter(Boolean).map(color => {
let index = color.lastIndexOf('=') + 1
let colorvalue = color.substring(index)
let colorvalue = color.substring(index).trim()
if (!/^(".*")|('.*')$/.test(colorvalue)) {
colorvalue = '"' + colorvalue + '"'
}
Expand Down

0 comments on commit f575bda

Please sign in to comment.