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

no-invalid-regexp does not look inside function calls #1269

Open
0f-0b opened this issue Apr 19, 2024 · 1 comment · May be fixed by #1302
Open

no-invalid-regexp does not look inside function calls #1269

0f-0b opened this issue Apr 19, 2024 · 1 comment · May be fixed by #1302
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@0f-0b
Copy link
Contributor

0f-0b commented Apr 19, 2024

Lint Name

no-invalid-regexp

Code Snippet

((_) => [
  /+/,
  RegExp("+"),
  new RegExp("+"),
])([
  /+/,
  RegExp("+"),
  new RegExp("+"),
]);

Expected Result

One warning for each regex.

Actual Result

No warning.

Version

$ dlint --version
dlint 0.58.3
@0f-0b 0f-0b added the bug Something isn't working label Apr 19, 2024
@bartlomieju bartlomieju added help wanted Extra attention is needed good first issue Good for newcomers labels May 10, 2024
@Colt45s
Copy link

Colt45s commented Jul 27, 2024

May I do it?

@Colt45s Colt45s linked a pull request Jul 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants