mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Changed RegExp to match new file format
swift-installer-linux-64-0.7.3.20170402204123.run
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a22631777d
commit
ba45da4851
@@ -239,7 +239,7 @@ namespace BlackMisc
|
||||
QString v = firstSegments.cap(0); // first 3 segments, like 0.9.3
|
||||
if (!v.endsWith('.')) { v += '.'; }
|
||||
|
||||
static const QRegExp ts1("\\d{4}.\\d{2}.\\d{2}.\\d{2}.\\d{2}.\\d{2}");
|
||||
static const QRegExp ts1("\\d{4}.?\\d{2}.?\\d{2}.?\\d{2}.?\\d{2}.?\\d{2}");
|
||||
if (ts1.indexIn(filename) < 0)
|
||||
{
|
||||
// version without timestamp
|
||||
|
||||
Reference in New Issue
Block a user