aboutsummaryrefslogtreecommitdiff
path: root/src/blocker/regexp.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-05-21 20:24:57 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2017-05-21 20:24:57 +0200
commit1a9e09332261d18ee892fc3613f16a0e80d115e0 (patch)
tree1bb1a158799dcc231b48aafc61d605e243f49314 /src/blocker/regexp.h
parentUpdated CONTRIBUTING (diff)
downloadsmolbote-1a9e09332261d18ee892fc3613f16a0e80d115e0.tar.xz
Reworking URL filter
Diffstat (limited to 'src/blocker/regexp.h')
-rw-r--r--src/blocker/regexp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blocker/regexp.h b/src/blocker/regexp.h
index 183fa35..86cedfd 100644
--- a/src/blocker/regexp.h
+++ b/src/blocker/regexp.h
@@ -29,9 +29,9 @@
class RegExp : public QRegularExpression
{
public:
- explicit RegExp();
+ explicit RegExp(const QString &pattern = "", PatternOptions options = NoPatternOption);
- bool match(const QString &subject, int offset=0, MatchType matchType=NormalMatch, MatchOptions matchOptions=NoMatchOption) const;
+ bool hasMatch(const QString &subject, int offset=0, MatchType matchType=NormalMatch, MatchOptions matchOptions=NoMatchOption) const;
void setWildcardPattern(const QString &pattern);
};