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

LibRegex: Moar Optimizer Fixes #2410

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alimpfard
Copy link
Contributor

@alimpfard alimpfard commented Nov 17, 2024

(WIP)
TODO:

  • /(?:\d|[e-h]*|\d*|\d|[h-pe-jh-vl-ua-lc-f]){,8}/.test('ulsf0xjtmiwk59zlwy17vjco2uskue')
  • /(?!\d*|[g-ta-r]+|[h-l]|\S|\S|\S){,9}|\S{7,8}|\d|(?<wnvdfimiwd>)|[c-mj-tb-o]*|\s/.test('rjvogg7pm|li4nmct mjb2|pk7s8e0')

Repeat's 'offset' field is a bit odd in that it is treated as a negative
offset, causing a backwards jump when positive; the optimizer didn't
correctly model this behaviour, which caused crashes and misopts when
dealing with Repeats.
This commit fixes that behaviour.
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