Minor fix for toggle casing for seletion - thx Leon :)

Fix #5498
This commit is contained in:
niksedk 2021-11-19 16:40:32 +01:00
parent df5c302841
commit 1a1e5a35b2

View File

@ -10351,18 +10351,19 @@ namespace Nikse.SubtitleEdit.Forms
for (var i = 0; i < text.Length; i++)
{
var ch = text[i];
if (char.IsNumber(ch))
{
continue;
}
if (!containsLowercase && char.IsLower(ch))
{
containsLowercase = true;
}
if (!containsUppercase && char.IsUpper(ch))
else if (!containsUppercase && char.IsUpper(ch))
{
containsUppercase = true;
}
i++;
}
if (containsUppercase && containsLowercase)