summaryrefslogtreecommitdiffstats
path: root/api/logic
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-11-01 00:34:31 +0100
committerPetr Mrázek <peterix@gmail.com>2018-11-01 00:34:31 +0100
commite4ce74e622b0c4deb40dce71c88a8cc1bc064c54 (patch)
treeb2d02cef395c86e7cff7c1c8bbc853346df09ab5 /api/logic
parent59e2f52db75c91c39ffa0ad1d1891fe365f187e2 (diff)
downloadMultiMC-e4ce74e622b0c4deb40dce71c88a8cc1bc064c54.tar
MultiMC-e4ce74e622b0c4deb40dce71c88a8cc1bc064c54.tar.gz
MultiMC-e4ce74e622b0c4deb40dce71c88a8cc1bc064c54.tar.lz
MultiMC-e4ce74e622b0c4deb40dce71c88a8cc1bc064c54.tar.xz
MultiMC-e4ce74e622b0c4deb40dce71c88a8cc1bc064c54.zip
GH-2382 fix exact version filter not being exact...
Diffstat (limited to 'api/logic')
-rw-r--r--api/logic/Filter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/Filter.cpp b/api/logic/Filter.cpp
index 6ec26bcb..c65ca0ce 100644
--- a/api/logic/Filter.cpp
+++ b/api/logic/Filter.cpp
@@ -13,7 +13,7 @@ ExactFilter::ExactFilter(const QString& pattern) : pattern(pattern){}
ExactFilter::~ExactFilter(){}
bool ExactFilter::accepts(const QString& value)
{
- return value.contains(pattern);
+ return value == pattern;
}
RegexpFilter::RegexpFilter(const QString& regexp, bool invert)