themer icon indicating copy to clipboard operation
themer copied to clipboard

Bug: Style Name is changed

Open gossi opened this issue 5 years ago • 1 comments

I figured, when using a prefix to determine the theme name, that everything after the first slash is changed if it contains a slash. Relevant code:

https://github.com/thomas-lowry/themer/blob/dba7de57f26b4d7b6e1acc5e4bd94d18f53ce1db/code.ts#L451

Apparently: The first slash is to distinguish in the themes to determine the name, everything after to match with the styles used where the theme is applied to. If they use a slash in their variable names, that does not work at all.

Correct would be:

let styleName = name.split('/').slice(1).join('/'); 

gossi avatar Feb 01 '20 20:02 gossi

I have the same problem. 'themer' does not work once '/' is present in the stylename.

ymyz1229 avatar Jun 24 '20 15:06 ymyz1229