From 029041dcf7aa52c0308f2d9cdc16ddc87b60941c Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Sat, 11 Jul 2020 21:43:34 -0400 Subject: [PATCH] Expand the maximum length of query searches. --- platform-darwin/Source/Mac/MPSitesWindowController.m | 2 +- platform-darwin/Source/iOS/MPSitesViewController.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform-darwin/Source/Mac/MPSitesWindowController.m b/platform-darwin/Source/Mac/MPSitesWindowController.m index 7da7f82d..9cab51c1 100644 --- a/platform-darwin/Source/Mac/MPSitesWindowController.m +++ b/platform-darwin/Source/Mac/MPSitesWindowController.m @@ -617,7 +617,7 @@ NSMutableString *queryPattern = [NSMutableString new]; [queryString enumerateSubstringsInRange: NSMakeRange(0, [queryString length]) options: NSStringEnumerationByComposedCharacterSequences usingBlock: ^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) { - if (substringRange.location < 10) { + if (substringRange.location < 20) { [queryGroups addObject:substring]; [queryPattern appendString:@"*"]; } diff --git a/platform-darwin/Source/iOS/MPSitesViewController.m b/platform-darwin/Source/iOS/MPSitesViewController.m index bbadc0cc..06bf6fbb 100644 --- a/platform-darwin/Source/iOS/MPSitesViewController.m +++ b/platform-darwin/Source/iOS/MPSitesViewController.m @@ -373,7 +373,7 @@ typedef NS_OPTIONS( NSUInteger, MPPasswordsTips ) { NSMutableString *queryPattern = [NSMutableString new]; [queryString enumerateSubstringsInRange: NSMakeRange(0, [queryString length]) options: NSStringEnumerationByComposedCharacterSequences usingBlock: ^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) { - if (substringRange.location < 10) { + if (substringRange.location < 20) { [queryGroups addObject:substring]; [queryPattern appendString:@"*"]; }