aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-06-02 09:05:30 +0000
committerBibiko <bibiko@eva.mpg.de>2010-06-02 09:05:30 +0000
commitad53eebb5da4103756c97030aa89b0facb88f367 (patch)
treebb3c4a71ea641749f1c3c4eb25d2904e5ae8cf43 /Source/SPTextView.m
parent4d969e20aab0741f81d0dabe9431da33a3c7bc73 (diff)
downloadsequelpro-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
Diffstat (limited to 'Source/SPTextView.m')
-rw-r--r--Source/SPTextView.m2
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)