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

prefer-regexp-test fixer is incorrect #7793

Closed
ezpuzz opened this issue Dec 11, 2024 · 0 comments · Fixed by #7898
Closed

prefer-regexp-test fixer is incorrect #7793

ezpuzz opened this issue Dec 11, 2024 · 0 comments · Fixed by #7898
Assignees

Comments

@ezpuzz
Copy link

ezpuzz commented Dec 11, 2024

          This isn't correct as the rule also triggers on strings eg `someString.match(SOME_REGEX)` and strings do not have a `test` method.

Originally posted by @ezpuzz in #5151 (comment)

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 a pull request may close this issue.

2 participants