Improve twitter.com regex string

Closes #236
Closes #237
Closes #304
This commit is contained in:
Zed 2021-12-27 00:36:31 +01:00
parent 5e5e290acc
commit a8c541954c
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import types, utils, query
const
ytRegex = re"([A-z.]+\.)?youtu(be\.com|\.be)"
twRegex = re"(www\.|mobile\.)?twitter\.com"
twRegex = re"(?<![^\/> ])(?<![^\/]\/)(www\.|mobile\.)?twitter\.com"
igRegex = re"(www\.)?instagram\.com"
cards = "cards.twitter.com/cards"
tco = "https://t.co"