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

jsonproc: filter out every non-alphanumeric character #1975

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

Sierraffinity
Copy link
Contributor

Description

Instead of filtering out specific characters, filter out anything that isn't alphanumeric (and prevent digits from being the first character too).
A more proper fix would be decomposing characters with diacritics and using their "base letter" but that would take a proper Unicode library as the current code is not Unicode aware.
Fixes #1963 .

Discord contact info

Sierraffinity

@GriffinRichards GriffinRichards merged commit 232eab4 into pret:master Jan 28, 2024
1 check passed
@Sierraffinity Sierraffinity deleted the jsonproc-fix branch January 29, 2024 05:05
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.

jsonproc improperly handles certain characters
2 participants