1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 13:48:00 -05:00

fix color code matching regex

This commit is contained in:
RaidMax 2023-06-24 20:08:40 -05:00
parent 039e37be1f
commit 122d2e5708

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))
{