fix instagram regex
Marco Andronaco andronacomarco@gmail.com
Sun, 21 Jan 2024 10:48:03 +0100
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
telegram/replace.go
→
telegram/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", }, {