From f5aa7f6ff6927790900ab3afb04ffc59ae65afdd Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sun, 17 Mar 2024 17:11:47 +0100 Subject: [PATCH] [backend/libmfm] Improve custom emoji regex --- Iceshrimp.Backend/Core/Helpers/LibMfm/Parsing/MfmParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iceshrimp.Backend/Core/Helpers/LibMfm/Parsing/MfmParser.cs b/Iceshrimp.Backend/Core/Helpers/LibMfm/Parsing/MfmParser.cs index 47ad4c7a..da4644d1 100644 --- a/Iceshrimp.Backend/Core/Helpers/LibMfm/Parsing/MfmParser.cs +++ b/Iceshrimp.Backend/Core/Helpers/LibMfm/Parsing/MfmParser.cs @@ -457,7 +457,7 @@ internal class SilentLinkNodeParser : INodeParser internal class EmojiCodeNodeParser : INodeParser { private const string Char = ":"; - private static readonly Regex Full = new("^[a-z0-9_+-]+$"); + private static readonly Regex Full = new("^[^.@\\s]+$"); public bool IsValid(string buffer, int position) {