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

Lookahead support #54

Open
artamonovkirill opened this issue Apr 26, 2021 · 0 comments
Open

Lookahead support #54

artamonovkirill opened this issue Apr 26, 2021 · 0 comments
Labels

Comments

@artamonovkirill
Copy link

We've been using exrex for NL postal codes generation using the following regex: ^(?i)[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$.

Looks like lookahead assertions are not being applied correctly:
https://github.com/artamonovkirill/exrex/blob/test/lookahead/tests.py#L67 (after I doubled the amount of tests, it fails almost 100%).

@asciimoo asciimoo added the bug label Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants