GeopJr / Tuba

Browse the Fediverse
https://tuba.geopjr.dev/
GNU General Public License v3.0
506 stars 55 forks source link

[Bug]: Punctuation marks included in hashtag parsing blue text color #922

Closed nekohayo closed 2 months ago

nekohayo commented 2 months ago

Describe the bug

Filing it separately from #920 as I presume it might be a separate parsing issue:

Punctuation marks like . , ; : ' are included in the blue formatting of hashtags. It seems like it might just be a visual glitch, and does not end up being "part of the tag" once posted.

Steps To Reproduce

Type Beware this #hashtag, for its blue ink leaks onto the comma!

Logs and/or Screenshots

image

I have not tested posting to verify if the straight apostrophe ' is a valid hashtag character for Mastodon or not, as it would be reminiscent of #875 and #883, but I wonder if this is normal too:

image

Instance Backend

Mastodon

Operating System

Fedora 39

Package

Flatpak

Troubleshooting information

os: GNOME 46 (Flatpak runtime) prefix: /app flatpak: true version: 0.7.2 (production) gtk: 4.14.1 (4.14.1) libadwaita: 1.5.0 (1.5.0) libsoup: 3.4.4 (3.4.4) libgtksourceview: 5.12.0 (5.12.0)

Additional Context

No response

GeopJr commented 2 months ago

The regex was too loose, it should now only allow: any alphabetic character of any language, any number, _

nekohayo commented 6 days ago

This should also be targetted to 0.8.x :)