aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-28 09:59:12 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-28 09:59:12 +0000
commit80120555be28a2ec1384ea05006c43c77857a0a0 (patch)
tree394ca6cc80f034d07cbda0b778433df65e395f7e /Source
parent33fc6a521b48dd97adf178c970c5f498d8db7ac6 (diff)
downloadsequelpro-80120555be28a2ec1384ea05006c43c77857a0a0.tar.gz
sequelpro-80120555be28a2ec1384ea05006c43c77857a0a0.tar.bz2
sequelpro-80120555be28a2ec1384ea05006c43c77857a0a0.zip
• SPQueryFavoriteManager
- changed regex for validation of the entered tab trigger to "(?i)[^[:L:]0-9]+" since "(?i)[^\\w0-9]+" doesn't work if SP runs in 32bit mode. - It seems that the new RegexKitLite has a problem to expand \w correctly if it is used like [^\w]
Diffstat (limited to 'Source')
-rw-r--r--Source/SPQueryFavoriteManager.m2
1 files changed, 1 insertions, 1 deletions
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];