adium 4775:3f3c8fd24679: Add some extra characters that we shoul...
commits at adium.im
commits at adium.im
Wed Apr 25 00:41:46 UTC 2012
details: http://hg.adium.im/adium/rev/3f3c8fd24679
revision: 4775:3f3c8fd24679
branch: (none)
author: Eric Richie
date: Tue Apr 24 20:41:39 2012 -0400
Add some extra characters that we shouldn't be linkifying.
diffs (22 lines):
diff -r 75593b4ae954 -r 3f3c8fd24679 Frameworks/AutoHyperlinks Framework/Source/AHHyperlinkScanner.m
--- a/Frameworks/AutoHyperlinks Framework/Source/AHHyperlinkScanner.m Tue Apr 24 16:14:05 2012 -0400
+++ b/Frameworks/AutoHyperlinks Framework/Source/AHHyperlinkScanner.m Tue Apr 24 20:41:39 2012 -0400
@@ -73,15 +73,15 @@
skipSet = [[NSCharacterSet characterSetWithBitmapRepresentation:[mutableSkipSet bitmapRepresentation]] retain];
[mutableSkipSet release];
- endSet = [[NSCharacterSet characterSetWithCharactersInString:@"\"',:;>)]}.?!@"] retain];
+ endSet = [[NSCharacterSet characterSetWithCharactersInString:@"\"'“”‘’,:;>)]}–—.…?!@"] retain];
NSMutableCharacterSet *mutableStartSet = [[NSMutableCharacterSet alloc] init];
[mutableStartSet formUnionWithCharacterSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
- [mutableStartSet formUnionWithCharacterSet:[NSCharacterSet characterSetWithCharactersInString:[NSString stringWithFormat:@"\"'.,:;<?!-@%C%C", 0x2014, 0x2013]]];
+ [mutableStartSet formUnionWithCharacterSet:[NSCharacterSet characterSetWithCharactersInString:[NSString stringWithFormat:@"\"'“”‘’.…,:;<?!-–—@%C%C", 0x2014, 0x2013]]];
startSet = [[NSCharacterSet characterSetWithBitmapRepresentation:[mutableStartSet bitmapRepresentation]] retain];
[mutableStartSet release];
- puncSet = [[NSCharacterSet characterSetWithCharactersInString:@"\"'.,:;<?!"] retain];
+ puncSet = [[NSCharacterSet characterSetWithCharactersInString:@"\"'“”‘’.…,:;–—<?!"] retain];
hostnameComponentSeparatorSet = [[NSCharacterSet characterSetWithCharactersInString:@"./"] retain];
enclosureStartArray = [[NSArray arrayWithObjects:@"(",@"[",@"{",nil] retain];
enclosureSet = [[NSCharacterSet characterSetWithCharactersInString:@"()[]{}"] retain];
More information about the commits
mailing list