mirror of
https://github.com/zedeus/nitter
synced 2024-11-16 06:57:01 +01:00
Fix hashtag regex
This commit is contained in:
parent
00825a76e9
commit
c158ce8517
@ -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 New Issue
Block a user