-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add regexp/simplify-set-operations
rule
#595
Conversation
🦋 Changeset detectedLatest commit: efca081 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Now that regexpp has been fixed, I think it's ready for review. |
Also, the code for getting escapes right when inlining character classes looks very complex. Maybe we could say that this rule only removes negations and doesn't inline character classes? E.g. |
I think that's a good idea! I will change the rule. |
regexp/require-reduce-negation
ruleregexp/simplify-set-operations
rule
Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @ota-meshi!
close #574
I found a bug in
regexpp
while implementing this rule. We need to fix that first.eslint-community/regexpp#136
If you have an idea for a better rule name, please let me know. I can rename the rule name.