diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-12 10:58:27 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-12 10:58:27 +0200 |
commit | 6423edaa76c362ea9fd32a4a0ddeda78e06793db (patch) | |
tree | 4e052ff604fc42831ef28fe1efa6fc77ed352b03 /launcher/Filter.cpp | |
parent | 74fe2fb2a6282a9292cc912b865ce0179dbc3412 (diff) | |
parent | 44153a28e369943ea16545146fec81f7a62e44dd (diff) | |
download | PrismLauncher-6423edaa76c362ea9fd32a4a0ddeda78e06793db.tar.gz PrismLauncher-6423edaa76c362ea9fd32a4a0ddeda78e06793db.tar.bz2 PrismLauncher-6423edaa76c362ea9fd32a4a0ddeda78e06793db.zip |
Merge remote-tracking branch 'upstream/staging' into curseforge-url-handle
Diffstat (limited to 'launcher/Filter.cpp')
-rw-r--r-- | launcher/Filter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/Filter.cpp b/launcher/Filter.cpp index c65ca0ce..f9530597 100644 --- a/launcher/Filter.cpp +++ b/launcher/Filter.cpp @@ -16,6 +16,12 @@ bool ExactFilter::accepts(const QString& value) return value == pattern; } +ExactIfPresentFilter::ExactIfPresentFilter(const QString& pattern) : pattern(pattern) {} +bool ExactIfPresentFilter::accepts(const QString& value) +{ + return value.isEmpty() || value == pattern; +} + RegexpFilter::RegexpFilter(const QString& regexp, bool invert) :invert(invert) { |