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 escape_except_blockquotes for greater than 9 block quotes in 1 string #317

Merged
merged 3 commits into from Feb 20, 2024

Conversation

jackgerrits
Copy link
Contributor

When there are more than 9 block quotes in a string escape_except_blockquotes will fail do to the fact that the BLOCKQUOTE_TOKEN_{i} replacement will incorrectly match for both BLOCKQUOTE_TOKEN_1 and BLOCKQUOTE_TOKEN_10

This just extends it to BLOCKQUOTE_TOKEN_{i}_END so this accidental match doesn't happen.

…ring

When there are more than 9 block quotes in a string `escape_except_blockquotes` will fail do to the fact that the `BLOCKQUOTE_TOKEN_{i}` replacement will incorrectly match for both `BLOCKQUOTE_TOKEN_1` and `BLOCKQUOTE_TOKEN_10`

This just extends it to `BLOCKQUOTE_TOKEN_{i}_END` so this accidental match doesn't happen.
@NiklasRosenstein
Copy link
Owner

Thanks @jackgerrits!

@NiklasRosenstein NiklasRosenstein merged commit 3f20390 into NiklasRosenstein:develop Feb 20, 2024
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.

None yet

2 participants