[Pkg-owncloud-commits] [owncloud-client] 13/78: A final release version number breaks this regex (#4835)
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Jun 24 16:29:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 669a72f0e1e7fd7a4214265ddbe537d6185844d6
Author: hefee <hefee at netzguerilla.net>
Date: Fri May 13 16:55:11 2016 +0200
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
---
test/testutility.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/testutility.cpp b/test/testutility.cpp
index c00c952..16fd306 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());
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list