this post was submitted on 19 Jun 2025
35 points (97.3% liked)
Voyager
6998 readers
20 users here now
The official lemmy community for Voyager, an open source, mobile-first client for lemmy.
Rules
- Be nice.
- lemmy.world instance policy
Sponsor development! ๐
๐
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
For that you strip the string to be tested of all non-ASCII chars before you run the regex.
But I see what you mean. I just fear that if links could be shown in different equally non-threatening colors users wouldn't know what to do with that information.
Okay, what if I use unicode characters that look similar to httัั://ั kัd.ัะพm/ and the function sees that an empty string is not a URL.
Yeah, I think the link preview is the only real solution. Like you said, best shown under the same paragraph.