leonardo icon indicating copy to clipboard operation
leonardo copied to clipboard

Generate valid variable names from theme names and fix comma in output formatting

Open thierryc opened this issue 1 year ago • 1 comments
trafficstars

Description

Implemented a JavaScript regex to sanitize theme names for use as variable names:

  • Replaces spaces, hyphens, plus signs, and other invalid characters with underscores.
  • Ensures adherence to JavaScript variable naming conventions.

Addressed a missing comma in output formatting:

  • Added a comma between the "output" and "formula" elements for clarity and consistency.

Motivation

Fix output

thierryc avatar Dec 24 '23 16:12 thierryc

Adobe CLA Signed!

thierryc avatar Dec 24 '23 16:12 thierryc

Moved work to https://github.com/adobe/leonardo/pull/243

GarthDB avatar Apr 19 '24 16:04 GarthDB