Fix bad assumption that there is always a zero'th group.
This commit is contained in:
parent
0b5502b673
commit
cfcc5287db
@ -89,7 +89,7 @@ typedef NS_OPTIONS( NSUInteger, MPPasswordsTips ) {
|
||||
pasteboardURL = [NSURL URLWithString:pasteboard.string];
|
||||
|
||||
if (pasteboardURL.host)
|
||||
self.query = NSNullToNil( [pasteboardURL.host firstMatchGroupsOfExpression:bareHostRE][0] );
|
||||
self.query = NSNullToNil( [[pasteboardURL.host firstMatchGroupsOfExpression:bareHostRE] firstObject] );
|
||||
else
|
||||
[self reloadSites];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user