From c81c82506e32b41fff1f2f84940ec7da11469b8d Mon Sep 17 00:00:00 2001 From: Yamboy1 Date: Fri, 27 Dec 2019 10:33:26 +1300 Subject: [PATCH] Prettier --- bot/modules/lbrylink.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bot/modules/lbrylink.js b/bot/modules/lbrylink.js index 4ac1bda..5ac1b31 100644 --- a/bot/modules/lbrylink.js +++ b/bot/modules/lbrylink.js @@ -13,14 +13,11 @@ 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})>(.+)/; + const mentionRegex = /(.+)<@!?(\d{18})>(.+)/s; let match; do { if (match) { - msg.content = - match[1] + - `@${msg.guild.members.get(match[2]).user.username}` + - match[3]; + msg.content = match[1] + `@${msg.guild.members.get(match[2]).user.username}` + match[3]; } match = msg.content.match(mentionRegex); } while (match);