Fixed tag matching

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

View File

@@ -90,7 +90,7 @@
foundMatch = [windowTitle rangeOfString:url.host options:NSCaseInsensitiveSearch].length != 0;
}
/* test for tags */
if(matchTags && !context.valid) {
if(matchTags && !foundMatch) {
NSArray *tags = [entry.tags componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@".:;"]];
for(NSString *tag in tags) {
foundMatch = ([windowTitle rangeOfString:tag options:NSCaseInsensitiveSearch].length != 0);