Skip to content

Bugfix: correct processing of empty patterns like '()' #72

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

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

Conversation

Dmitryv-2024
Copy link

exrex was throwing exceptions on the regexps with an empty sub-pattern, like these:

  • ()
  • (('s)|( is)|())

@Dmitryv-2024
Copy link
Author

We need this fix in our project https://github.com/deeppavlov/AutoIntent. The license of the library is not compatible with our project.
Hence, if the author is not going to have a look in the modification, we have to create and release our own forked version on PyPi.

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.

1 participant