mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-25 06:56:40 +07:00
fix link handler and too much buttons
All checks were successful
Build & Publish / Build & Publish (push) Successful in 1m38s
All checks were successful
Build & Publish / Build & Publish (push) Successful in 1m38s
This commit is contained in:
parent
ba3d274cab
commit
34f89fa75e
3 changed files with 14 additions and 1 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