A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(composer): keep emoji autocomplete open on tilde names (#3126)
Hampus1f18d3262d50
diff --git a/fluxer_app/src/features/messaging/utils/SlashCommandUtils.ts b/fluxer_app/src/features/messaging/utils/SlashCommandUtils.tsindex 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*(.*)$/;