Fix QRegularExpression::wildcardToRegularExpression() usage
ClosedPublic

Authored by ahmadsamir on Jan 15 2020, 7:03 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
R241 KIO
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:03 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptJan 15 2020, 7:03 PM
ahmadsamir requested review of this revision.Jan 15 2020, 7:03 PM
dfaure accepted this revision.Jan 16 2020, 10:41 PM
This revision is now accepted and ready to land.Jan 16 2020, 10:41 PM
This revision was automatically updated to reflect the committed changes.