From b2b353025df8e089dc7af1c6b05615bf900861d4 Mon Sep 17 00:00:00 2001 From: Pecacheu <3608878+Pecacheu@users.noreply.github.com> Date: Tue, 18 Aug 2026 23:04:42 -0400 Subject: [PATCH 1/2] fix: Normalize regex format Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com> --- src/lib/regex.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/regex.ts b/src/lib/regex.ts index 82212261..91cce0fb 100644 --- a/src/lib/regex.ts +++ b/src/lib/regex.ts @@ -1,17 +1,17 @@ /** * Regular expression for mentions. */ -export const RE_MENTIONS = /<@([0-9ABCDEFGHJKMNPQRSTVWXYZ]{26})>/g; +export const RE_MENTIONS = /<@([A-Z\d]{26})>/g; /** * Regular expression for channels. */ -export const RE_CHANNELS = /<#([0-9ABCDEFGHJKMNPQRSTVWXYZ]{26})>/g; +export const RE_CHANNELS = /<#([A-Z\d]{26})>/g; /** * Regular expression for stripping custom emojis. */ -export const RE_CUSTOM_EMOJI = /:([0-9ABCDEFGHJKMNPQRSTVWXYZ]{26}):/g; +export const RE_CUSTOM_EMOJI = /:([A-Z\d]{26}):/g; /** * Regular expression for spoilers. From 591e7f44e8a49facc134728396bc62ef788ee7ec Mon Sep 17 00:00:00 2001 From: Pecacheu <3608878+Pecacheu@users.noreply.github.com> Date: Thu, 20 Aug 2026 00:44:38 -0400 Subject: [PATCH 2/2] fix: ULID is missing some letters Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com> --- src/lib/regex.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/regex.ts b/src/lib/regex.ts index 91cce0fb..65379fee 100644 --- a/src/lib/regex.ts +++ b/src/lib/regex.ts @@ -1,17 +1,17 @@ /** * Regular expression for mentions. */ -export const RE_MENTIONS = /<@([A-Z\d]{26})>/g; +export const RE_MENTIONS = /<@([ABCDEFGHJKMNPQRSTVWXYZ\d]{26})>/g; /** * Regular expression for channels. */ -export const RE_CHANNELS = /<#([A-Z\d]{26})>/g; +export const RE_CHANNELS = /<#([ABCDEFGHJKMNPQRSTVWXYZ\d]{26})>/g; /** * Regular expression for stripping custom emojis. */ -export const RE_CUSTOM_EMOJI = /:([A-Z\d]{26}):/g; +export const RE_CUSTOM_EMOJI = /:([ABCDEFGHJKMNPQRSTVWXYZ\d]{26}):/g; /** * Regular expression for spoilers.