mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2025-01-31 21:11:39 +01:00
[OcrFixEngine] - Go with less expensive first.
This commit is contained in:
parent
d97a6de498
commit
87d3517704
@ -1100,7 +1100,7 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
|
||||
}
|
||||
foreach (string guess in guesses)
|
||||
{
|
||||
if (IsWordOrWordsCorrect(guess) && !guess.StartsWith("f "))
|
||||
if (!guess.StartsWith("f ", StringComparison.Ordinal) && IsWordOrWordsCorrect(guess))
|
||||
{
|
||||
string replacedLine = OcrFixReplaceList.ReplaceWord(line, word, guess);
|
||||
if (replacedLine != line)
|
||||
|
Loading…
x
Reference in New Issue
Block a user