Improve hashtag regex

Fixes #47
This commit is contained in:
Zed 2019-09-27 00:53:11 +02:00
parent a7dcdea9dd
commit 6d61c203cf
1 changed files with 1 additions and 1 deletions

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]|^)([#$]\w+)"
ytRegex = re"(www.|m.)?youtu(be.com|.be)"
twRegex = re"(www.|mobile.)?twitter.com"
nbsp = $Rune(0x000A0)