Skip to content

fix: no-reactive-literals using :matches(...) #207

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

Merged
merged 2 commits into from
Jul 31, 2022

Conversation

tivac
Copy link
Collaborator

@tivac tivac commented Jul 31, 2022

One of the suggestions on #203 was to use :matches(...) around an array .join() which somehow got only... halfway implemented. The .join() was there, but it was missing the :matches(...) around it which could lead to some pretty bad false positives.

Added back the :matches(...) and added a few more valid test-cases to watch out for false-positives like this going forward.

tivac added 2 commits July 31, 2022 00:27
Previously it wasn't which meant the resulting query could match too many things.
Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ota-meshi ota-meshi merged commit ae139a7 into sveltejs:main Jul 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants