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>
This commit is contained in:
Ray
2026-08-20 00:57:11 -04:00
committed by GitHub
parent ee0a9803c5
commit d435932bfa
+3 -3
View File
@@ -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.