Skip to content
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

fix(no-bare-strings-in-template): resolve regex matching order #2682

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

waynzh
Copy link
Member

@waynzh waynzh commented Feb 12, 2025

fix #2681

Didn't use the \b (word boundary) approach, as it wasn't playing nice with special characters(like @@). Now it sorts the allowlist by length (longest first) and matches sequentially, which should solve this issue.

Copy link
Member

@FloEdelmann FloEdelmann left a comment

Choose a reason for hiding this comment

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

Nice, thank you!

@FloEdelmann FloEdelmann merged commit 487af10 into master Feb 12, 2025
12 checks passed
@FloEdelmann FloEdelmann deleted the fix/regex-match branch February 12, 2025 13:06
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.

vue/no-bare-strings-in-template "allowlist" not always taken into account
2 participants