Skip to content

Conversation

@laurikari
Copy link
Owner

@laurikari laurikari commented Dec 3, 2025

The backtracking engine stopped early when a failing run had consumed the whole string. It never retried from the next start position.

This fixes the bug and adds a test case.

Closes #126

@dag-erling dag-erling self-requested a review December 4, 2025 20:16
@laurikari laurikari merged commit 93bb9e3 into master Dec 5, 2025
6 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.

Upstream TRE regex engine fails to match valid back-reference pattern with upper-bound repetition

3 participants