Commit 23ac915d authored by Laurent Montel's avatar Laurent Montel 😁

Don't evaluate when key lenght > wordlenght

parent de84782d
......@@ -816,6 +816,9 @@ int AutoCorrection::advancedAutocorrect()
QHashIterator<QString, QString> i(mAutocorrectEntries);
while (i.hasNext()) {
i.next();
if (i.key().length() > actualWordLength) {
continue;
}
if (actualWord.endsWith(i.key()) ||
actualWord.toLower().endsWith(i.key()) ||
actualWordWithFirstUpperCase.endsWith(i.key())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment