mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
commit
9baeb5867e
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@ exports.lbrylink = async function(bot, msg, suffix) {
|
||||||
|
|
||||||
//clean URLS from any prepended or appended extra chars
|
//clean URLS from any prepended or appended extra chars
|
||||||
for (let i = 0; i < urls.length; i++) {
|
for (let i = 0; i < urls.length; i++) {
|
||||||
urls[i] = urls[i].replace(/^lbry:\/\//g, 'https://open.lbry.com/').replace(/\W+$/g, '');
|
urls[i] = urls[i]
|
||||||
|
.replace(/^lbry:\/\//g, 'https://open.lbry.com/')
|
||||||
|
.replace(/\W+$/g, '')
|
||||||
|
.replace(/#/g, ':');
|
||||||
}
|
}
|
||||||
const linkEmbed = new RichEmbed();
|
const linkEmbed = new RichEmbed();
|
||||||
linkEmbed
|
linkEmbed
|
||||||
|
|
Loading…
Add table
Reference in a new issue