Commit c576a3eb authored by Ragnar Thomsen's avatar Ragnar Thomsen
Browse files

clirar: Remove unnecessary QRegularExpression in readExtractLine()

QString::contains() is more efficient.
parent a3962e38
......@@ -562,8 +562,7 @@ void CliPlugin::handleUnrar4Entry()
bool CliPlugin::readExtractLine(const QString &line)
const QRegularExpression rxCRC(QStringLiteral("CRC failed"));
if (rxCRC.match(line).hasMatch()) {
if (line.contains(QLatin1String("CRC failed"))) {
emit error(i18n("One or more wrong checksums"));
return false;
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