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

Feature request: Make charClassClassrangesMerge do nothing if no ranges could be merged #235

Open
jlherren opened this issue Nov 10, 2021 · 0 comments

Comments

@jlherren
Copy link

I'm using eslint-plugin-optimize-regex and I would prefer [-\w] to not be transformed into [\w-]. This seems to be caused by charClassClassrangesMerge, which obviously I could just blacklist. But it would be neat if I didn't have to and this transform would simply do nothing if no ranges were successfully merged. Perhaps the sorting could be added as a separate transform, which I could then blacklist.

I'm using version 0.1.24.

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

No branches or pull requests

1 participant