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 panic on char boundary #16

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Conversation

jongiddy
Copy link
Contributor

Splitting the string at a specific index can panic if it is not the start of a character. This can occur if the string contains multibyte Unicode characters. Change the code to split only once the slash character has been found in the first 128 characters.

Splitting the string at a specific index can panic if it is not the
start of a character. Change the code to split only once the slash
character has been found in the first 128 characters.
@picoHz picoHz merged commit 42b9260 into picoHz:main Jan 11, 2024
1 check passed
@jongiddy
Copy link
Contributor Author

Thanks for the fast response and release!

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.

2 participants