Fix hashtag regex

This commit is contained in:
Zed 2019-09-24 23:33:19 +02:00
parent 00825a76e9
commit c158ce8517

View file

@ -11,7 +11,7 @@ const
usernameRegex = re"(^|[^A-z0-9_?\/])@([A-z0-9_]+)"
picRegex = re"pic.twitter.com/[^ ]+"
ellipsisRegex = re" ?…"
hashtagRegex = re"([^\S])?([#$][A-z0-9]+)"
hashtagRegex = re"([^\S]|^)([#$][A-z0-9]+)"
ytRegex = re"(www.|m.)?youtu(be.com|.be)"
twRegex = re"(www.|mobile.)?twitter.com"
nbsp = $Rune(0x000A0)