Merge pull request #291 from Yamboy1/master

Fix lbrylinker again
This commit is contained in:
Ralph 2020-01-21 09:27:45 -05:00 committed by GitHub
commit 948355bd7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ exports.lbrylink = async function(bot, msg, suffix) {
const urlOccurrences = (msg.content.match(/lbry:\/\//g) || []).length;
if (urlOccurrences > 0) {
//convert all mentions to a plain string (because lbry://@Nikooo777 gets parsed as lbry://@<123123123> instead)
const mentionRegex = /(.+)<@!?(\d{18})>(.+)/s;
const mentionRegex = /(.*)<@!?(\d{18})>(.*)/s;
let match;
do {
if (match) {