Merge pull request #288 from Yamboy1/master

Fix LBRY Linker URLs
This commit is contained in:
Ralph 2019-12-29 16:23:41 -05:00 committed by GitHub
commit 9baeb5867e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,10 @@ exports.lbrylink = async function(bot, msg, suffix) {
//clean URLS from any prepended or appended extra chars
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();
linkEmbed