mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-04-30 03:22:04 -04:00
Fix Kick emote regex so it's less greedy and can handle consecutive emotes with no space
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user