From: hefee Date: Fri, 13 May 2016 14:55:11 +0000 (+0200) Subject: A final release version number breaks this regex (#4835) X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1172^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=669a72f0e1e7fd7a4214265ddbe537d6185844d6;p=nextcloud-desktop.git A final release version number breaks this regex (#4835) f.ex. a valid verson nr: 2.2.0 -> fist \d+ = 2 -> second \d+ = 2 -> the last \d+ = 0 -> .+ in not matching, because there is nothing to match --- diff --git a/test/testutility.cpp b/test/testutility.cpp index c00c952b1..16fd3066b 100644 --- a/test/testutility.cpp +++ b/test/testutility.cpp @@ -127,7 +127,7 @@ private slots: qDebug() << "Version of installed ownCloud Binary: " << ver; QVERIFY( !ver.isEmpty()); - QRegExp rx( "ownCloud version \\d+\\.\\d+\\.\\d+.+" ); + QRegExp rx( "ownCloud version \\d+\\.\\d+\\.\\d+.*" ); QVERIFY( rx.exactMatch(ver)); } else { QVERIFY( versionOfInstalledBinary().isEmpty());