From faa0c11fa4762e3f4c2edf671f56bf18c068d227 Mon Sep 17 00:00:00 2001 From: michael starke Date: Tue, 29 Sep 2015 12:45:44 +0200 Subject: [PATCH] Fixed refactoring bug in tag matching Signed-off-by: michael starke --- MacPass/MPDocument+Autotype.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MacPass/MPDocument+Autotype.m b/MacPass/MPDocument+Autotype.m index 0d5cd7ee..a250e526 100644 --- a/MacPass/MPDocument+Autotype.m +++ b/MacPass/MPDocument+Autotype.m @@ -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) {