Don't use helper function to avoid raising the Qt5 min version requeriment

This commit is contained in:
Luis Ángel San Martín 2021-10-02 07:55:01 +02:00
parent 8207f75297
commit d47bd55fa0

View File

@ -1002,7 +1002,7 @@ QString get_most_common_prefix(const QList<QString> &pageNames)
}
}
QRegularExpression allNumberRegExp(QRegularExpression::anchoredPattern("\\d+"));
QRegularExpression allNumberRegExp("\\A\\d+\\z");
if (allNumberRegExp.match(common_prefix).hasMatch()) {
return "";
}