Fix QRegularExpression::wildcardToRegularExpression() usage
ClosedPublic

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

Details

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

Diff Detail

Repository
R495 Purpose Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ahmadsamir created this revision.Jan 15 2020, 7:08 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJan 15 2020, 7:08 PM
ahmadsamir requested review of this revision.Jan 15 2020, 7:08 PM
apol accepted this revision.Jan 16 2020, 2:27 AM
This revision is now accepted and ready to land.Jan 16 2020, 2:27 AM
This revision was automatically updated to reflect the committed changes.