Changed RegExp to match new file format

swift-installer-linux-64-0.7.3.20170402204123.run
This commit is contained in:
Klaus Basan
2017-04-03 18:10:31 +02:00
committed by Mathew Sutcliffe
parent a22631777d
commit ba45da4851

View File

@@ -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