all repos — gif-escarbot @ c6280b99199656100c11fdf131214c6cd711a69e

Earthbound Café's custom delivery bot with other cool utilities built-in.

better twitter regex
Marco Andronaco andronacomarco@gmail.com
Sat, 02 Sep 2023 00:02:16 +0200
commit

c6280b99199656100c11fdf131214c6cd711a69e

parent

465814d33970e2d31852c62fa59753995231de1f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M escarbot/replace.pyescarbot/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/{}", }, {