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 string and block string matches being too eager #17

Merged
merged 3 commits into from
Jun 6, 2023
Merged

Conversation

kitten
Copy link
Member

@kitten kitten commented Jun 6, 2023

Summary

Certain cases could cause the stringRe and blockStringRe to match too eagerly.
Specifically, if a block string was followed by another, it would match until the end of the last block string in the document. This was because of a faulty escaped end character match \""".

The regular string matcher had a very similar issue that needed fixing.

Both cases were tested against Safari 10.

Set of changes

  • Update stringRe
  • Update blockStringRe
  • Add tests

@kitten kitten merged commit 3c39490 into main Jun 6, 2023
@github-actions github-actions bot mentioned this pull request Jun 6, 2023
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