From d435932bfa9328fb4bd30cc4cb72fdaf49f19973 Mon Sep 17 00:00:00 2001 From: Ray <3608878+Pecacheu@users.noreply.github.com> Date: Thu, 20 Aug 2026 00:57:11 -0400 Subject: [PATCH] fix: Normalize regex format (#188) * fix: Normalize regex format Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com> * fix: ULID is missing some letters Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com> --------- 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..65379fee 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 = /<@([ABCDEFGHJKMNPQRSTVWXYZ\d]{26})>/g; /** * Regular expression for channels. */ -export const RE_CHANNELS = /<#([0-9ABCDEFGHJKMNPQRSTVWXYZ]{26})>/g; +export const RE_CHANNELS = /<#([ABCDEFGHJKMNPQRSTVWXYZ\d]{26})>/g; /** * Regular expression for stripping custom emojis. */ -export const RE_CUSTOM_EMOJI = /:([0-9ABCDEFGHJKMNPQRSTVWXYZ]{26}):/g; +export const RE_CUSTOM_EMOJI = /:([ABCDEFGHJKMNPQRSTVWXYZ\d]{26}):/g; /** * Regular expression for spoilers.