Fix hashtag regex

This commit is contained in:
Zed 2019-09-24 23:33:19 +02:00
parent 00825a76e9
commit c158ce8517
1 changed files with 1 additions and 1 deletions

View File

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