Fixed so that the URL sent to users by lbrylink is cleaned from bad characters that can crash the LBRY app. Fixes #166

This commit is contained in:
filipnyquist 2018-06-28 14:49:50 +02:00
parent 859d9bf5e1
commit 032e91c7ad

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',