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

Rule proposal: Forbid range Z-a #138

Closed
fisker opened this issue Apr 16, 2021 · 3 comments · Fixed by #122
Closed

Rule proposal: Forbid range Z-a #138

fisker opened this issue Apr 16, 2021 · 3 comments · Fixed by #122

Comments

@fisker
Copy link

fisker commented Apr 16, 2021

New users may use /[A-f]/, to match [A-Za-f] or [A-Fa-F], but it's neither, there are other strings in this range, they just don't know.

/[A-f]/.test('[')
true

Fail

/[A-z]/

Any range include Z-a

Pass

/[A-Za-z]/
@fisker
Copy link
Author

fisker commented Apr 16, 2021

Maybe also 9-A

@RunDevelopment
Copy link
Collaborator

#122 does exactly this :)

@RunDevelopment RunDevelopment linked a pull request Apr 16, 2021 that will close this issue
@fisker
Copy link
Author

fisker commented Apr 16, 2021

Thanks!

@fisker fisker closed this as completed Apr 16, 2021
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