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

markdown: fix panic when searching for indent #128

Merged
merged 2 commits into from
Sep 19, 2023
Merged

markdown: fix panic when searching for indent #128

merged 2 commits into from
Sep 19, 2023

Conversation

tommilligan
Copy link
Owner

@tommilligan tommilligan commented Sep 19, 2023

Closes #127

This PR fixes a bug introduced in #124 where we index into a string with a potentially invalid byte index. This was not detected by ASCII tests - regression tests have been added with non-ASCII values.

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.

After updating to v1.12.0, I get a panic as byte index XX is not a char boundary;
1 participant