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

fix: Fix regex repetition to NFA conversion to correctly implement repetition upper bounds. #13

Merged
merged 3 commits into from
Dec 15, 2024

Conversation

LinZhihao-723
Copy link
Contributor

@LinZhihao-723 LinZhihao-723 commented Dec 15, 2024

Description

fix: Fix regex repetition to NFA conversion to correctly implement repetition upper bounds.
Before this PR, the regex repetition upper bound feature was broken since it was translated into the wrong NFA. This PR fixes this behavior and adds additional unit tests to ensure the generated NFA matches our expectations, as well as DFA's expected simulations.

Validation performed

  • Ensure workflows all passed, with updated NFA unit tests and new DFA unit tests for repetition.

@LinZhihao-723 LinZhihao-723 marked this pull request as ready for review December 15, 2024 06:34
@Louis-He Louis-He merged commit 4748bf9 into Toplogic-Inc:main Dec 15, 2024
2 checks passed
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.

2 participants