58 days ago · Tech · hide · Fediverse post

TL;DR: Most slug libraries only allow \p{L} (letters), \p{N} (numbers), and \p{S} (symbols). In Indic scripts like Malayalam, vowels are often combining marks (\p{M}), not letters. The fix is simple: add \p{M} to your allowed character class. I’ll show you exactly how. I recently fixed this memos PR #6051. The bug was simple but devastating: Malayalam tags like #കവിത were being truncated to #കവ. The last two characters — ി (vowel sign I) and ത — were rendered outside tag.

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town