Commit c84abce1 authored by Laurent Montel's avatar Laurent Montel 😁

Use "name.contains(str, Qt::CaseInsensitive)" it would be faster.

Thanks David for info.
parent 475e5474
......@@ -64,8 +64,8 @@ bool PotentialPhishingEmailJob::start()
tname = tname.mid(1,tname.length()-2);
}
if (temail.toLower() != tname.toLower()) {
QString str = QString::fromLatin1("(%1)").arg(temail.toLower());
if (!tname.toLower().contains(str)) {
const QString str = QString::fromLatin1("(%1)").arg(temail.toLower());
if (!tname.contains(str, Qt::CaseInsensitive)) {
mPotentialPhisingEmails.append(addr);
}
}
......
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