From 6ab6b96312d5dc7f683362d3eaa88b167744703d Mon Sep 17 00:00:00 2001 From: dev-737 <73829355+dev-737@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:37:59 +0530 Subject: [PATCH] fix: fixed message link regex --- src/utils/Constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index 8f2d9351..41f19e3d 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -87,7 +87,7 @@ export default { Hexcode: /^#[0-9A-F]{6}$/i, ChannelMention: /<#|!|>/g, ImgurImage: /https?:\/\/i\.imgur\.com\/[a-zA-Z0-9]+\.((jpg)|(jpeg)|(png)|(gif))/g, - MessageLink: /https:\/\/discord.com\/channels\/(\d{17,19})\/(\d{17,19})\/(\d{17,19})/g, + MessageLink: /https:\/\/(?:canary\.|ptb\.)?discord\.com\/channels\/(\d+)\/(\d+)\/(\d+)/, SimpleRegexEscape: /[.*+?^${}()|[\]\\]/g, RegexChars: /[-[\]{}()*+?.,\\^$|#\s]/g, },