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

Add support for negative ranges in classes #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ConradIrwin
Copy link
Contributor

Before this change [\D] was treated the same as [\d] because the
complement flag was lost.

After this change [\D] correctly represents the set of non-\d
characters.

This also enables [\d\D] to match every single character.

Fixes #66

Before this change [\D] was treated the same as [\d] because the
complement flag was lost.

After this change [\D] correctly represents the set of non-\d
characters.

This also enables [\d\D] to match every single character.

Fixes bd82#66
@bd82
Copy link
Owner

bd82 commented Jul 5, 2020

Hello @ConradIrwin

Thanks for the PR.
Are you using this library directly or via Chevrotain?

The reason I am asking is that I am interested in deprecating this library and replacing its usage in Chevrotain with regexpp.

@ConradIrwin
Copy link
Contributor Author

I'm using it directly, because I'm building tools that analyze regular expressions. If you thinkregexpp is better, then I may switch to that too :D.

Thanks for your work on this so far, it got me up and running!

@bd82
Copy link
Owner

bd82 commented Jul 6, 2020

Thanks @ConradIrwin , Please let me know if you have any issues with regexpp the main reason
I want to use it is to reduce TCO and need to maintain this library... I don't know how good or not it is yet 😄 .

@ConradIrwin
Copy link
Contributor Author

ConradIrwin commented Jul 6, 2020 via email

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 this pull request may close these issues.

Incorrectly handles [\D] as equivalent to [\d]
2 participants