From 1f18d3262d50fb40ded44cf2310ce7ce8b1e676b Mon Sep 17 00:00:00 2001 From: Hampus Date: Fri, 2 Oct 2026 17:26:30 +0200 Subject: [PATCH] fix(composer): keep emoji autocomplete open on tilde names (#3126) --- fluxer_app/src/features/messaging/utils/SlashCommandUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluxer_app/src/features/messaging/utils/SlashCommandUtils.ts b/fluxer_app/src/features/messaging/utils/SlashCommandUtils.ts index dadbdecd0..0ac924f41 100644 --- a/fluxer_app/src/features/messaging/utils/SlashCommandUtils.ts +++ b/fluxer_app/src/features/messaging/utils/SlashCommandUtils.ts @@ -4,8 +4,8 @@ import type {Command} from '@app/features/devtools/hooks/useCommands'; const MENTION_REGEX = /(^|\s)@(\S*)$/; const CHANNEL_REGEX = /(^|\s)#(\S*)$/; -const EMOJI_REGEX = /(^|\s):([a-z0-9_+-]{2,})$/i; -const EMOJI_REACTION_REGEX = /^\s*\+:([a-z0-9_+-]*):?$/i; +const EMOJI_REGEX = /(^|\s):([a-z0-9_+~-]{2,})$/i; +const EMOJI_REACTION_REGEX = /^\s*\+:([a-z0-9_+~-]*):?$/i; const COMMAND_REGEX = /(^\s*)\/(\S*)$/; const MEME_SEARCH_REGEX = /(^\s*)\/saved\s*(.*)$/; const GIF_SEARCH_REGEX = /(^\s*)\/(gif|klipy)\s*(.*)$/;