Merge pull request #3433 from svick/build-console-output
Use ordinal comparison when searching for escape sequence in build framework console
This commit is contained in:
commit
6802e23d77
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ namespace Microsoft.DotNet.Cli.Build.Framework
|
|||
var escapeScan = 0;
|
||||
for (;;)
|
||||
{
|
||||
var escapeIndex = message.IndexOf("\x1b[", escapeScan);
|
||||
var escapeIndex = message.IndexOf("\x1b[", escapeScan, StringComparison.Ordinal);
|
||||
if (escapeIndex == -1)
|
||||
{
|
||||
var text = message.Substring(escapeScan);
|
||||
|
|
Loading…
Reference in a new issue