2
0

Fix bad assumption that there is always a zero'th group.

This commit is contained in:
Maarten Billemont 2017-06-04 09:46:29 -04:00
parent 0b5502b673
commit cfcc5287db

View File

@ -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];
} }