From 03dd8e6e4fad96eec3389693ea8471b7af371bb8 Mon Sep 17 00:00:00 2001 From: michael starke Date: Tue, 29 Sep 2015 12:46:12 +0200 Subject: [PATCH] Fixed tag matching Signed-off-by: michael starke --- MacPass/MPDocument+Autotype.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacPass/MPDocument+Autotype.m b/MacPass/MPDocument+Autotype.m index a250e526..b43804b7 100644 --- a/MacPass/MPDocument+Autotype.m +++ b/MacPass/MPDocument+Autotype.m @@ -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);