From 4de8924e8b741becf6d3a794a40ac687368da7cd Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 28 Mar 2022 15:15:34 -0400 Subject: feat: message quoting --- src/lib/utils/BushConstants.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/lib/utils') diff --git a/src/lib/utils/BushConstants.ts b/src/lib/utils/BushConstants.ts index 8d35522..df69806 100644 --- a/src/lib/utils/BushConstants.ts +++ b/src/lib/utils/BushConstants.ts @@ -154,9 +154,13 @@ export class BushConstants { discordEmoji: /[a-zA-Z0-9_]+):(?\d{15,21})>/im, - //stolen from geek + /* + * Taken with permission from Geek: + * https://github.com/FireDiscordBot/bot/blob/5d1990e5f8b52fcc72261d786aa3c7c7c65ab5e8/lib/util/constants.ts#L276 + */ + /** **This has the global flag, make sure to handle it correctly.** */ messageLink: - /(?:ptb\.|canary\.|staging\.|lc\.)?(?:discord(?:app)?)\.(?:com)?\/channels\/(?\d{15,21}|@me)\/(?\d{15,21})\/(?\d{15,21})/im + /\d{15,21})\/(?\d{15,21})\/(?\d{15,21})>?/gim } as const); /** -- cgit