diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-05-21 20:24:57 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-05-21 20:24:57 +0200 |
commit | 1a9e09332261d18ee892fc3613f16a0e80d115e0 (patch) | |
tree | 1bb1a158799dcc231b48aafc61d605e243f49314 /src/blocker/regexp.cpp | |
parent | Updated CONTRIBUTING (diff) | |
download | smolbote-1a9e09332261d18ee892fc3613f16a0e80d115e0.tar.xz |
Reworking URL filter
Diffstat (limited to 'src/blocker/regexp.cpp')
-rw-r--r-- | src/blocker/regexp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blocker/regexp.cpp b/src/blocker/regexp.cpp index 30fe00e..8560455 100644 --- a/src/blocker/regexp.cpp +++ b/src/blocker/regexp.cpp @@ -20,12 +20,12 @@ #include "regexp.h" -RegExp::RegExp() : - QRegularExpression() +RegExp::RegExp(const QString &pattern, PatternOptions options) : + QRegularExpression(pattern, options) { } -bool RegExp::match(const QString &subject, int offset, MatchType matchType, MatchOptions matchOptions) const +bool RegExp::hasMatch(const QString &subject, int offset, MatchType matchType, MatchOptions matchOptions) const { // Empty matches all if(pattern().isEmpty()) { |