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:
Eric Erhardt 2016-06-08 13:55:12 -05:00
commit 6802e23d77

View file

@ -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);