[KWallet] Port last usage of QRegExp to QRegularExpression

Authored by ahmadsamir on Apr 16 2020, 12:17 PM.

Description

[KWallet] Port last usage of QRegExp to QRegularExpression

Summary:
QRegularExpression::wildcardToRegularExpression() mainly handles file
pattern globbing (e.g. "*.txt") which means it doesn't allow "/" in
the file name (which is technically correct); but we have to subvert
it because the keys in kwallet are in the form "foobar.com/<User name>"
which does have a "/" in it. It's a hack, but it works here because
in reality, there're no actual files/folders in kwallet, it's just
data structures and "/" is an acceptable separator.

Test Plan:

  • make && ctest
  • The password dialog in Falkon still wors

Reviewers: Frameworks, dfaure, blaze

Reviewed By: dfaure

Subscribers: kde-frameworks-devel

Tags: Frameworks

Maniphest Tasks: T12279

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

Details

Committed
ahmadsamirApr 18 2020, 1:11 PM
Reviewer
dfaure
Differential Revision
D28880: [KWallet] Port last usage of QRegExp to QRegularExpression
Parents
R311:cb65b279b20f: GIT_SILENT Upgrade KF5 version to 5.70.0.
Branches
Unknown
Tags
Unknown