mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 03:26:30 +00:00
Improve youtube/twitter regex
This commit is contained in:
parent
96b7a6fa51
commit
4ae5d4fda3
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ const
|
|||
usernameRegex = re"(^|[^A-z0-9_?])@([A-z0-9_]+)"
|
||||
picRegex = re"pic.twitter.com/[^ ]+"
|
||||
ellipsisRegex = re" ?…"
|
||||
ytRegex = re"(www.)?youtu(be.com|.be)"
|
||||
twRegex = re"(www.)?twitter.com"
|
||||
ytRegex = re"(www.|m.)?youtu(be.com|.be)"
|
||||
twRegex = re"(www.|mobile.)?twitter.com"
|
||||
nbsp = $Rune(0x000A0)
|
||||
|
||||
proc stripText*(text: string): string =
|
||||
|
|
Loading…
Reference in a new issue