mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-07 21:58:06 -05:00
fix color code matching regex
This commit is contained in:
parent
039e37be1f
commit
122d2e5708
@ -195,7 +195,7 @@ namespace SharedLibraryCore
|
|||||||
}
|
}
|
||||||
|
|
||||||
var output = str;
|
var output = str;
|
||||||
var colorCodeMatches = Regex.Matches(output, @"\(Color::(.{1,16})\)",
|
var colorCodeMatches = Regex.Matches(output, @"\(Color::(\w{1,16})\)",
|
||||||
RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
||||||
foreach (var match in colorCodeMatches.Where(m => m.Success))
|
foreach (var match in colorCodeMatches.Where(m => m.Success))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user