nice new update

This commit is contained in:
404invalid-user 2025-01-18 01:27:58 +00:00
parent e136522421
commit 666638c956
136 changed files with 4483 additions and 9190 deletions

View file

@ -0,0 +1,11 @@
export default function parseEmoji(input: string | null): string | null {
if (input === null || input == ' ' || input === ' ') return null;
const customEmojiMatch = input.match(/^<:.*:(\d+)>$/);
if (customEmojiMatch) return customEmojiMatch[1];
const unicodeEmojiRegex = /^[\p{Emoji_Presentation}\p{Emoji}\uFE0F]+$/u;
if (unicodeEmojiRegex.test(input)) return input;
return null;
}