From 80120555be28a2ec1384ea05006c43c77857a0a0 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 28 Jan 2010 09:59:12 +0000 Subject: =?UTF-8?q?=E2=80=A2=20SPQueryFavoriteManager=20-=20changed=20rege?= =?UTF-8?q?x=20for=20validation=20of=20the=20entered=20tab=20trigger=20to?= =?UTF-8?q?=20"(=3Fi)[^[:L:]0-9]+"=20since=20"(=3Fi)[^\\w0-9]+"=20doesn't?= =?UTF-8?q?=20work=20if=20SP=20runs=20in=2032bit=20mode.=20-=20It=20seems?= =?UTF-8?q?=20that=20the=20new=20RegexKitLite=20has=20a=20problem=20to=20e?= =?UTF-8?q?xpand=20\w=20correctly=20if=20it=20is=20used=20like=20[^\w]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPQueryFavoriteManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m index a6f8941b..324a4850 100644 --- a/Source/SPQueryFavoriteManager.m +++ b/Source/SPQueryFavoriteManager.m @@ -535,7 +535,7 @@ } else if(object == favoriteTabTriggerTextField){ //Validate trigger - it only may contain alphnumeric characters - NSString *tabTrigger = [NSString stringWithString:[[favoriteTabTriggerTextField stringValue] stringByReplacingOccurrencesOfRegex:@"[^\\w0-9]" withString:@""]]; + NSString *tabTrigger = [NSString stringWithString:[[favoriteTabTriggerTextField stringValue] stringByReplacingOccurrencesOfRegex:@"(?i)[^[:L:]0-9]+" withString:@""]]; [favoriteTabTriggerTextField setStringValue:tabTrigger]; [[favorites objectAtIndex:[favoritesTableView selectedRow]] setObject:tabTrigger forKey:@"tabtrigger"]; [favoritesTableView reloadData]; -- cgit v1.2.3