1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-24 22:46:41 +07:00

fix link handler and too much buttons
Some checks failed
Build & Publish / Build & Publish (push) Failing after 44s

This commit is contained in:
Fedor Katurov 2025-03-03 14:45:55 +07:00
parent ba3d274cab
commit 933fa40805
3 changed files with 16 additions and 5 deletions

View file

@ -15,7 +15,7 @@ export const extractURLs = (text: string): URL[] => {
text
.match(weirdLongUrlRegex)
?.forEach((match) =>
urls.add(fixUrl(match.replace(weirdLongUrlRegex, "$2")))
urls.add(fixUrl(match.replace(weirdLongUrlRegex, "$3")))
);
text.match(simpleUrlRegex)?.forEach((match) => urls.add(match));