fix color code matching regex
This commit is contained in:
parent
6f28bc5b0b
commit
4740479ace
@ -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…
Reference in New Issue
Block a user