From ba45da48515364d5a4beda663fa83e16062ddfd7 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 3 Apr 2017 18:10:31 +0200 Subject: [PATCH] Changed RegExp to match new file format swift-installer-linux-64-0.7.3.20170402204123.run --- src/blackmisc/db/distribution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blackmisc/db/distribution.cpp b/src/blackmisc/db/distribution.cpp index 76b623971..2396dce11 100644 --- a/src/blackmisc/db/distribution.cpp +++ b/src/blackmisc/db/distribution.cpp @@ -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