diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-06-02 09:05:30 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-06-02 09:05:30 +0000 |
commit | ad53eebb5da4103756c97030aa89b0facb88f367 (patch) | |
tree | bb3c4a71ea641749f1c3c4eb25d2904e5ae8cf43 | |
parent | 4d969e20aab0741f81d0dabe9431da33a3c7bc73 (diff) | |
download | sequelpro-ad53eebb5da4103756c97030aa89b0facb88f367.tar.gz sequelpro-ad53eebb5da4103756c97030aa89b0facb88f367.tar.bz2 sequelpro-ad53eebb5da4103756c97030aa89b0facb88f367.zip |
• fixed incompatibility between regexp engine ICU 10.6 and 10.5 for parsing tab snippets
- the regexp [^{}] is a valid expression but leads on 10.5 to an error; for 10.5 one has to escape { and } → [^\\{\\}] works on both SDKs
- this fixes i682
-rw-r--r-- | Source/SPTextView.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m index 3fd842d8..c2ede0bf 100644 --- a/Source/SPTextView.m +++ b/Source/SPTextView.m @@ -1537,7 +1537,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) NSMutableString *snip = [[NSMutableString alloc] initWithCapacity:[theSnippet length]]; @try{ - NSString *re = @"(?s)(?<!\\\\)\\$\\{(1?\\d):(.{0}|[^{}]*?[^\\\\])\\}"; + NSString *re = @"(?s)(?<!\\\\)\\$\\{(1?\\d):(.{0}|[^\\{\\}]*?[^\\\\])\\}"; NSString *mirror_re = @"(?<!\\\\)\\$(1?\\d)(?=\\D)"; if(targetRange.length) |