Fix hashtag regex
This commit is contained in:
parent
00825a76e9
commit
c158ce8517
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue