From 0328680ae50bcbf54966ed4c14b23e41225aadb1 Mon Sep 17 00:00:00 2001 From: Gennadii Potapov Date: Wed, 29 Jan 2020 14:15:52 +0800 Subject: [PATCH] Make search case-insensitive --- FlycutEngine/FlycutStore.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FlycutEngine/FlycutStore.m b/FlycutEngine/FlycutStore.m index 499e59b..68aab09 100755 --- a/FlycutEngine/FlycutStore.m +++ b/FlycutEngine/FlycutStore.m @@ -364,7 +364,7 @@ enumerator = [subArray objectEnumerator]; int index = 0; while ( aClipping = [enumerator nextObject] ) { // Forward enumerator so we find the most recent N matches - if ([[self clippingContentsAtPosition:index] rangeOfString:search].location != NSNotFound) { + if ([[self clippingContentsAtPosition:index] rangeOfString:search options:NSCaseInsensitiveSearch].location != NSNotFound) { [returnArray insertObject:[aClipping displayString] atIndex:0]; howMany--; if (0 == howMany) @@ -402,7 +402,7 @@ enumerator = [subArray objectEnumerator]; int index = 0; while ( aClipping = [enumerator nextObject] ) { // Forward enumerator so we find the most recent N matches - if ([[self clippingContentsAtPosition:index] rangeOfString:search].location != NSNotFound) { + if ([[self clippingContentsAtPosition:index] rangeOfString:search options:NSCaseInsensitiveSearch].location != NSNotFound) { [returnArray addObject:[NSNumber numberWithInt:index]]; howMany--; if (0 == howMany)