summaryrefslogtreecommitdiff
path: root/src/adblock/adblockhostmatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/adblock/adblockhostmatcher.cpp')
-rw-r--r--src/adblock/adblockhostmatcher.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/adblock/adblockhostmatcher.cpp b/src/adblock/adblockhostmatcher.cpp
index c0b25726..021fe12d 100644
--- a/src/adblock/adblockhostmatcher.cpp
+++ b/src/adblock/adblockhostmatcher.cpp
@@ -31,8 +31,9 @@
bool AdBlockHostMatcher::tryAddFilter(const QString &filter)
{
- if (filter.startsWith(QL1S("||"))) {
-
+ if (filter.startsWith(QL1S("||")))
+ {
+
QString domain = filter.mid(2);
if (!domain.endsWith(QL1C('^')))