projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f0e65d
)
A final release version number breaks this regex (#4835)
author
hefee
<hefee@netzguerilla.net>
Fri, 13 May 2016 14:55:11 +0000
(16:55 +0200)
committer
Klaas Freitag
<freitag@owncloud.com>
Fri, 13 May 2016 14:55:11 +0000
(16:55 +0200)
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
patch
|
blob
|
history
diff --git
a/test/testutility.cpp
b/test/testutility.cpp
index c00c952b16a2284ab7d8b2bc973989aa12a6e278..16fd3066b595077c71d2fa028bdb6298a471b654 100644
(file)
--- 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());