diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-09-29 11:29:22 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-09-29 11:29:22 +0000 |
commit | 3b67ecd76d5be47edac13f4e125c4a5fcfe44f9f (patch) | |
tree | 8cd7426bc4780fad72716305a3013f3a75712174 /Source | |
parent | 0060523321ff117531aa4678a429303446280d48 (diff) | |
download | sequelpro-3b67ecd76d5be47edac13f4e125c4a5fcfe44f9f.tar.gz sequelpro-3b67ecd76d5be47edac13f4e125c4a5fcfe44f9f.tar.bz2 sequelpro-3b67ecd76d5be47edac13f4e125c4a5fcfe44f9f.zip |
• Filter Table
- improved operator parsing for >= <= <> ≠ ≤ ≥
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTableContent.m | 5 |
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) |