Revert "Use QRegularExpression instead of deprecated QRegExp"

Related to #14611

This reverts commit 3b748178c2.
This commit is contained in:
sledgehammer999
2021-03-26 12:43:51 +02:00
parent 1570b51f6c
commit e7235cc3f8
11 changed files with 32 additions and 53 deletions

View File

@@ -213,8 +213,10 @@ QRegularExpression AutoDownloadRule::cachedRegex(const QString &expression, cons
QRegularExpression &regex = m_dataPtr->cachedRegexes[expression];
if (regex.pattern().isEmpty())
{
const QString pattern = (isRegex ? expression : Utils::String::wildcardToRegexPattern(expression));
regex = QRegularExpression {pattern, QRegularExpression::CaseInsensitiveOption};
regex = QRegularExpression
{
(isRegex ? expression : Utils::String::wildcardToRegex(expression))
, QRegularExpression::CaseInsensitiveOption};
}
return regex;