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

[BUG] Test cases don't evaluate everything in "MATCH FULL" #533

Open
YorikHansen opened this issue Jan 2, 2025 · 0 comments
Open

[BUG] Test cases don't evaluate everything in "MATCH FULL" #533

YorikHansen opened this issue Jan 2, 2025 · 0 comments

Comments

@YorikHansen
Copy link

YorikHansen commented Jan 2, 2025

Description:
"MATCH FULL" does not work properly, if the tested regex contains a top level | and an other case is partially matched.

Minimal Example:
a|ab with the test case ab (https://regexr.com/8alo5)

Expected Behavior:
As the regex could match the full ab and the test type is all, the test should be successful (as if the entered regex would be ^(?:a|ab)$)

Observed Behavior:
The test fails, as Text.js:326 only checks, if the found match has the right length.

Related Issues:
This bug seems to be related to the optimization mentioned in #513

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

No branches or pull requests

1 participant