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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 lint/noMultipleSpacesInRegularExpressionLiterals code fix doesn't correctly handle consecutive spaces followed by a quantifier #383

Closed
1 task done
Conaclos opened this issue Sep 22, 2023 · 0 comments 路 Fixed by #384
Assignees
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@Conaclos
Copy link
Member

Environment information

Playground

What happened?

The rule provides a wrong an incorrect suggestion when a quantifier follows multiple spaces.

For instance, the rule provides the following incorrect fix:

- /  +/
+ / {2}+/

Expected result

The rule should provide a correct fix.

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@Conaclos Conaclos added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug labels Sep 22, 2023
@Conaclos Conaclos self-assigned this Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
1 participant