Use simplified() method to clean-up input lines.

This commit is contained in:
LoRd_MuldeR 2018-10-21 14:22:04 +02:00
parent fe90a2c688
commit 6d39b858d4

View File

@ -522,7 +522,7 @@ bool MUtils::UpdateChecker::parseVersionInfo(const QString &file, UpdateCheckerI
while(!data.atEnd()) while(!data.atEnd())
{ {
QString line = QString::fromLatin1(data.readLine()).trimmed(); QString line = QString::fromLatin1(data.readLine()).simplified();
if (regex_sec.indexIn(line) >= 0) if (regex_sec.indexIn(line) >= 0)
{ {
sectionId = 0; /*unknown section*/ sectionId = 0; /*unknown section*/