Looking back at this it may be incorrect. I'm terrible at regex.
Solid's classList is an object like classList={{ 'class other-class': isSomeCondition }}
Should it be String.raw`(\s+class(Name|List)?\s*=\s*{?\s*["'\`\{])[^"'\`\}]*$`; instead? Adding \{ and \} to their respective blocks like ["'\`\{]? I tried to test it a bit with regexr but i cant even get the original string to match.
@kidqueb thanks for the information, and an example for solid. I will get this working sooner or later. A big new release is coming up. Just needs some more time.
Looking back at this it may be incorrect. I'm terrible at regex.
Solid's classList is an object like
classList={{ 'class other-class': isSomeCondition }}
Should it be
String.raw`(\s+class(Name|List)?\s*=\s*{?\s*["'\`\{])[^"'\`\}]*$`;
instead? Adding\{
and\}
to their respective blocks like["'\`\{]
? I tried to test it a bit with regexr but i cant even get the original string to match.Sorry for the run around ðŸ˜