From bdabe29b83628cc551b95faa10509e2a6d76fdd4 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Tue, 26 Mar 2024 16:35:45 +0800 Subject: [PATCH] Fix Kick emote regex so it's less greedy and can handle consecutive emotes with no space --- KfChatDotNetKickBot/Extensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KfChatDotNetKickBot/Extensions.cs b/KfChatDotNetKickBot/Extensions.cs index f3e8b15..761d795 100644 --- a/KfChatDotNetKickBot/Extensions.cs +++ b/KfChatDotNetKickBot/Extensions.cs @@ -7,7 +7,7 @@ public static class Extensions /// Emotes are encoded like [emote:161238:russW] which translates to -> https://files.kick.com/emotes/161238/fullsize public static string TranslateKickEmotes(this string s) { - Regex regex = new Regex(@"\[(.+?):(\d+):(\S+)\]"); + Regex regex = new Regex(@"\[(.+?):(\d+):(\S+?)\]"); var matches = regex.Matches(s); if (matches.Count == 0) {