Merge pull request #195 from lbryio/clean-urls

Fixed so that the URL sent to users by lbrylink is cleaned from bad c…
This commit is contained in:
filipnyquist 2018-06-28 14:50:19 +02:00 committed by GitHub
commit f985d6df10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ exports.lbrylink = function(bot, msg, suffix) {
}
}
const embed = {
description: "I see you tried to post a LBRY URL, here's a friendly hyperlink to share and for others to access your content with a single click: \n" + newURL,
description: "I see you tried to post a LBRY URL, here's a friendly hyperlink to share and for others to access your content with a single click: \n" + newURL.replace(/[^0-9a-z#]/gi,''),
color: 7976557,
author: {
name: 'LBRY Linker',