Skip to content

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

Open
Dmitryv-2024 wants to merge 1 commit into
asciimoo:masterfrom
Dmitryv-2024:bugfix/empty_pattern_error
Open

Bugfix: correct processing of empty patterns like '()'#72
Dmitryv-2024 wants to merge 1 commit into
asciimoo:masterfrom
Dmitryv-2024:bugfix/empty_pattern_error

Conversation

@Dmitryv-2024

Copy link
Copy Markdown

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

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

@Dmitryv-2024

Copy link
Copy Markdown
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