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

Update decoding strategy to properly account for hex chars #88

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

zephraph
Copy link
Owner

@zephraph zephraph commented Oct 6, 2024

I was working on a post around the syntax highlighting and this happened:

CleanShot 2024-10-06 at 14 24 22@2x

Turns out the regex I was using to swap out html encoded chars was using \d which won't work for hex because it contains letters. Just swapped it out for a \w which fixes things up.

I kinda need a way to purge the cache... 🤔

@zephraph zephraph merged commit bdc2936 into main Oct 6, 2024
2 checks passed
@zephraph zephraph deleted the fix-html-decoding branch October 6, 2024 18:26
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