Merge pull request #196 from lbryio/filipnyquist-patch-3

Fixed a small error with the regexp
This commit is contained in:
filipnyquist 2018-06-28 14:59:22 +02:00 committed by GitHub
commit 85b39052c5
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.replace(/[^0-9a-z#]/gi,''),
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',