Fix QRegularExpression::wildcardToRegularExpression() usage

Authored by ahmadsamir on Jan 15 2020, 7:05 PM.

Description

Fix QRegularExpression::wildcardToRegularExpression() usage

Summary:
It turns out that QRegularExpression::wildcardToRegularExpression() returns
an anchored (with \A and \z) pattern, so using anchoredPattern() in such
cases would actually anchor the pattern twice, which is obviously wrong.
Thanks to Mikołaj Płomieński (blaze) for catching it in
https://phabricator.kde.org/D26205#594891

Test Plan: make && ctest

Reviewers: Frameworks, apol, dfaure

Reviewed By: apol

Subscribers: kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D26693

Details

Committed
ahmadsamirJan 16 2020, 8:49 AM
Reviewer
apol
Differential Revision
D26693: Fix QRegularExpression::wildcardToRegularExpression() usage
Parents
R495:ab02adc8a287: GIT_SILENT Bump KF5 deprecation level to 5.66
Branches
Unknown
Tags
Unknown