Merge pull request #8056 from ivandrofly/feature/ocr-engine-bug

Fix subscript in OcrFixEngine
This commit is contained in:
Nikolaj Olsson 2024-03-23 08:59:44 +01:00 committed by GitHub
commit 18903eaeb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1957,7 +1957,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
a = a[0] + a.Substring(1).ToLowerInvariant();
}
var b = ar[0];
var b = ar[1];
if (b == b.ToUpperInvariant())
{
b = b[0] + b.Substring(1).ToLowerInvariant();