better twitter regex
Marco Andronaco andronacomarco@gmail.com
Sat, 02 Sep 2023 00:02:16 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
escarbot/replace.py
→
escarbot/replace.py
@@ -40,7 +40,7 @@ "becomes": "https://y.outube.duckdns.org/{}",
"timestamp": youtube_timestamp }, { - "regex": re.compile(r"(?:https?:\/\/)?(?:www\.)?twitter\.com\/(?:#!\/)?(.*)\/status(?:es)?\/([^\/\?\s]+)", re_flags), + "regex": re.compile(r"(?:https?:\/\/)(?:www\.)?twitter\.com\/(?:#!\/)?(.*)\/status(?:es)?\/([^\/\?\s]+)", re_flags), "becomes": "https://fxtwitter.com/{}/status/{}", }, {