aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-09-29 11:29:22 +0000
committerBibiko <bibiko@eva.mpg.de>2010-09-29 11:29:22 +0000
commit3b67ecd76d5be47edac13f4e125c4a5fcfe44f9f (patch)
tree8cd7426bc4780fad72716305a3013f3a75712174
parent0060523321ff117531aa4678a429303446280d48 (diff)
downloadsequelpro-3b67ecd76d5be47edac13f4e125c4a5fcfe44f9f.tar.gz
sequelpro-3b67ecd76d5be47edac13f4e125c4a5fcfe44f9f.tar.bz2
sequelpro-3b67ecd76d5be47edac13f4e125c4a5fcfe44f9f.zip
• Filter Table
- improved operator parsing for >= <= <> ≠ ≤ ≥
-rw-r--r--Source/SPTableContent.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 8012caa3..bb7754cc 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -4225,7 +4225,7 @@
BOOL lookInAllFields = NO;
- NSString *re1 = @"^\\s*(<|>|!?=)\\s*(.*?)\\s*$";
+ NSString *re1 = @"^\\s*(<[=>]?|>=?|!?=|≠|≤|≥)\\s*(.*?)\\s*$";
NSString *re2 = @"(?i)^\\s*(.*)\\s+(.*?)\\s*$";
NSCharacterSet *whiteSpaceCharSet = [NSCharacterSet whitespaceAndNewlineCharacterSet];
@@ -4265,6 +4265,9 @@
else
filterCell = NSArrayObjectAtIndex([filterCellData objectForKey:@"filter"], i);
}
+ filterCell = [filterCell stringByReplacingOccurrencesOfRegex:@"^\\s*≠" withString:@"!="];
+ filterCell = [filterCell stringByReplacingOccurrencesOfRegex:@"^\\s*≤" withString:@"<="];
+ filterCell = [filterCell stringByReplacingOccurrencesOfRegex:@"^\\s*≥" withString:@">="];
if([filterCell length]) {
if(numberOfValues)