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

12$: warn on combining characters in regexp character classes #1176

Open
strager opened this issue Jan 8, 2024 · 3 comments
Open

12$: warn on combining characters in regexp character classes #1176

strager opened this issue Jan 8, 2024 · 3 comments
Labels
for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html

Comments

@strager
Copy link
Collaborator

strager commented Jan 8, 2024

https://biomejs.dev/linter/rules/no-misleading-character-class/

@strager strager added the for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html label Jan 8, 2024
@CoderMuffin
Copy link
Contributor

CoderMuffin commented Mar 17, 2024

Hi @strager,
I would be interested in tackling this issue :)
Are strings within the parser encoded in any specific format (UTF-8, UTF-16**) or does it need to be able to "catch-all"?

@CoderMuffin
Copy link
Contributor

Hi @strager,
Sorry for the ping, just wondering if there was any update on this?
Thanks :)

@strager
Copy link
Collaborator Author

strager commented Apr 27, 2024

Are strings within the parser encoded in any specific format (UTF-8, UTF-16**) or does it need to be able to "catch-all"?

Within quick-lint-js's parser, source code is in UTF-8.

Here's the code which detects character classes in regexps:

It's bare-bones because we don't do anything with the character classes currently. Feel free to rip it apart to implement this diagnostic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html
Projects
None yet
Development

No branches or pull requests

2 participants