Skip to content

Commit

Permalink
remove extra quotes
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Herwege <[email protected]>
  • Loading branch information
mherwege committed Oct 7, 2022
1 parent 22328ec commit 8a36a40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function writeWidget (widget, indent) {
// Anything after the first comparator that is a string should be in quotes.
// Also quote string if no comparator (i.e. fixed labelcolor or valuecolor).
let value = v.substring(0, v.search(/[=<>]/))
value += v.substring(v.search(/[=<>]/)).replace(/[A-Za-z][A-Za-z0-9 _-]*/, function (x) { return '"' + x + '"' })
value += v.substring(v.search(/[=<>]/)).replace(/"/g, '').replace(/[A-Za-z][A-Za-z0-9 _-]*/, function (x) { return '"' + x + '"' })
return value
})
dsl += arrayDsl.join(',')
Expand Down

0 comments on commit 8a36a40

Please sign in to comment.