From 1a9e09332261d18ee892fc3613f16a0e80d115e0 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 21 May 2017 20:24:57 +0200 Subject: Reworking URL filter --- src/blocker/regexp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/blocker/regexp.h') 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); }; -- cgit v1.2.1