mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-09-03 02:35:17 +00:00
commit
948355bd7c
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ exports.lbrylink = async function(bot, msg, suffix) {
|
||||||
const urlOccurrences = (msg.content.match(/lbry:\/\//g) || []).length;
|
const urlOccurrences = (msg.content.match(/lbry:\/\//g) || []).length;
|
||||||
if (urlOccurrences > 0) {
|
if (urlOccurrences > 0) {
|
||||||
//convert all mentions to a plain string (because lbry://@Nikooo777 gets parsed as lbry://@<123123123> instead)
|
//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;
|
let match;
|
||||||
do {
|
do {
|
||||||
if (match) {
|
if (match) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue