1 #include "mythversion.h"
5 #include <QRegularExpression>
9 return MYTH_SOURCE_VERSION;
14 return MYTH_SOURCE_PATH;
28 static const QRegularExpression themeparts
29 { R
"(\Av([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(-pre)?)",
30 QRegularExpression::CaseInsensitiveOption };
34 auto match = themeparts.match(
version);
35 if (!match.isValid() || !match.hasMatch())
37 devel = !match.captured(6).isEmpty();
38 major = match.captured(1).toUInt();
39 minor = match.captured(3).toUInt();