Skip to content

Commit 7c6a6d9

Browse files
committed
add allowthousands to NumberStyles in DotnetNewSearchTests
1 parent 7fc0f87 commit 7c6a6d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tests/dotnet-new.Tests/DotnetNewSearchTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,11 +994,11 @@ public int Compare(string? x, string? y)
994994

995995
if (x != "<1k")
996996
{
997-
_ = int.TryParse(x.Trim().AsSpan(0, x.Length - 1), out xInt);
997+
_ = int.TryParse(x.Trim().AsSpan(0, x.Length - 1), System.Globalization.NumberStyles.AllowThousands, null, out xInt);
998998
}
999999
if (y != "<1k")
10001000
{
1001-
_ = int.TryParse(y.Trim().AsSpan(0, y.Length - 1), out yInt);
1001+
_ = int.TryParse(y.Trim().AsSpan(0, y.Length - 1), System.Globalization.NumberStyles.AllowThousands, null, out yInt);
10021002
}
10031003
return xInt.CompareTo(yInt);
10041004
}

0 commit comments

Comments
 (0)