Fixed refactoring bug in tag matching

Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
michael starke
2015-09-29 12:45:44 +02:00
parent ce5fa1061e
commit faa0c11fa4

View File

@@ -85,8 +85,9 @@
foundMatch = [windowTitle rangeOfString:entry.url options:NSCaseInsensitiveSearch].length != 0;
}
/* test for host */
if(matchHost && foundMatch) {
//TODO:
if(matchHost && !foundMatch) {
NSURL *url = [NSURL URLWithString:entry.url];
foundMatch = [windowTitle rangeOfString:url.host options:NSCaseInsensitiveSearch].length != 0;
}
/* test for tags */
if(matchTags && !context.valid) {