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

OP_ANYLINEBREAK incomplete in FindRepeated #372

Open
User4martin opened this issue Jan 7, 2024 · 0 comments
Open

OP_ANYLINEBREAK incomplete in FindRepeated #372

User4martin opened this issue Jan 7, 2024 · 0 comments
Labels

Comments

@User4martin
Copy link

User4martin commented Jan 7, 2024

  IsNotMatching('no loop linebreak', 'a\R\Rb', 'a'#13#10'b');
  IsNotMatching('   loop linebreak', 'a\R+\Rb', 'a'#13#10'b');
  • The first test works, \R eats the entire #13#10. The 2nd #R does not match.
  • Yet the 2nd test (which also must match 2 linebreaks does match.

In a OP_STAR (FindRepeated) OP_ANYLINEBREAK changes its preference to match #13#10 as 2 breaks rather than 1. So the same pattern has different behaviour.

@Alexey-T Alexey-T added the bug label Jan 8, 2024
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