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
Some checks failed
Build & Publish / Build & Publish (push) Failing after 44s
This commit is contained in:
parent
ba3d274cab
commit
933fa40805
3 changed files with 16 additions and 5 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue