fix color code matching regex

This commit is contained in:
RaidMax 2023-06-24 20:08:40 -05:00
parent 6f28bc5b0b
commit 4740479ace

View File

@ -195,7 +195,7 @@ namespace SharedLibraryCore
}
var output = str;
var colorCodeMatches = Regex.Matches(output, @"\(Color::(.{1,16})\)",
var colorCodeMatches = Regex.Matches(output, @"\(Color::(\w{1,16})\)",
RegexOptions.IgnoreCase | RegexOptions.Compiled);
foreach (var match in colorCodeMatches.Where(m => m.Success))
{