all repos — escarbot @ f36c451550a5d2de1acc9975ed24adad272d3c4c

Earthbound Café's custom Telegram bot, with lots of cool utilities built-in.

fix instagram regex
Marco Andronaco andronacomarco@gmail.com
Sun, 21 Jan 2024 10:48:03 +0100
commit

f36c451550a5d2de1acc9975ed24adad272d3c4c

parent

07d968fe3a53370818ff1b969eff3271d96d718c

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

jump to
M telegram/replace.gotelegram/replace.go

@@ -29,7 +29,7 @@ Regex: regexp.MustCompile(regexFlags + `(?:https?:\/\/)?(?:www\.)?x\.com\/(?:#!\/)?(.*)\/status(?:es)?\/([^\/\?\s]+)`),

Format: "https://fixupx.com/%s/status/%s", }, { - Regex: regexp.MustCompile(regexFlags + `(?:https?:\/\/)?(?:www\.)?instagram\.com\/((?:reel)|p)\/([A-Za-z0-9_]{11})[\/\?\w=&]*`), + Regex: regexp.MustCompile(regexFlags + `(?:https?:\/\/)?(?:www\.)?instagram\.com\/(reel|p)\/([A-Za-z0-9_-]{11})[\/\?\w=&]*`), Format: "https://ddinstagram.com/%s/%s", }, {