-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<style></style>
in comment results incorrect output
#212
Comments
We need to adjust this regex to account for comments. |
Besides, if there are two
|
I just came across this problem myself. I hope it gets fixed soon. Currently, its messing up any regex pattern which includes the style tag. |
That's #70 . Accounting for html comments is a special case of that but easier to handle. |
This isn't just style tags in comments. Any comments cause problems: This:
Results in:
Note the extra semicolon and truncation. Edit: This happens only in combination with import-sort and svelte. |
This is a separate issue, please open a new issue for that with more details on now to reproduce |
Account for the script/style being inside a comment Fixes sveltejs#212
Account for the script/style being inside a comment Fixes #212
source:
result:
The text was updated successfully, but these errors were encountered: