Fix lbrylink again

This commit is contained in:
Yamboy1 2020-01-21 16:49:49 +13:00
parent 7277e5450a
commit e37365a9d4

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) {