minor bugfix

This commit is contained in:
2020-06-14 22:20:33 +02:00
parent 9560dc68a5
commit 42b2cb5660
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ namespace Benchmark
private static bool TryGetPrefix(in string identity, ref int lastPosition, out string prefix)
{
prefix = identity.Remove(lastPosition + 1);
if (prefix.Length <= 3) return false;
if (prefix.Length < 3) return false;
return !prefix.Any(character => character < 'A' || character > 'Z');
}