Closed g-plane closed 1 year ago
Tried to fix the regex, tested against some examples.
attr=value
['attr=value', 'attr', null, 'value']
attr="value"
['attr="value"', 'attr', '"', 'value']
attr='value'
["attr='value'", 'attr', "'", 'value']
attr
['attr', 'attr']
Version
Prettier: v2.8.3 prettier-plugin-svelte: v2.9.0
Input
Attribute value without quotes.
Actual Output
The
=
char is removed.Expected Output
It should add quotes, not remove the
=
.I can provide more detail if you need.