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];
|
pasteboardURL = [NSURL URLWithString:pasteboard.string];
|
||||||
|
|
||||||
if (pasteboardURL.host)
|
if (pasteboardURL.host)
|
||||||
self.query = NSNullToNil( [pasteboardURL.host firstMatchGroupsOfExpression:bareHostRE][0] );
|
self.query = NSNullToNil( [[pasteboardURL.host firstMatchGroupsOfExpression:bareHostRE] firstObject] );
|
||||||
else
|
else
|
||||||
[self reloadSites];
|
[self reloadSites];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user