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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/adblock/adblockhostmatcher.cpp b/src/adblock/adblockhostmatcher.cpp
index 4a29fb9e..021fe12d 100644
--- a/src/adblock/adblockhostmatcher.cpp
+++ b/src/adblock/adblockhostmatcher.cpp
@@ -31,20 +31,20 @@
bool AdBlockHostMatcher::tryAddFilter(const QString &filter)
{
- if(filter.startsWith(QL1S("||")))
+ if (filter.startsWith(QL1S("||")))
{
QString domain = filter.mid(2);
- if(!domain.endsWith(QL1C('^')))
+ if (!domain.endsWith(QL1C('^')))
return false;
- if(domain.contains(QL1C('$')))
+ if (domain.contains(QL1C('$')))
return false;
domain = domain.left(domain.size() - 1);
- if(domain.contains(QL1C('/')) || domain.contains(QL1C('*')) || domain.contains(QL1C('^')))
+ if (domain.contains(QL1C('/')) || domain.contains(QL1C('*')) || domain.contains(QL1C('^')))
return false;
domain = domain.toLower();