Adium

Changeset 24284

Show
Ignore:
Timestamp:
07/09/2008 01:06:51 PM (6 months ago)
Author:
sholt
Message:

Fix for a bug where only the "xample.com" in "@example.com" would get linked, found by rgov in irc. Fixed so "example.com" gets linked.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/AutoHyperlinks Framework/Source/AHHyperlinkScanner.m

    r24283 r24284  
    124124                        NSMutableCharacterSet *mutableStartSet = [[NSMutableCharacterSet alloc] init]; 
    125125                        [mutableStartSet formUnionWithCharacterSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; 
    126                         [mutableStartSet formUnionWithCharacterSet:[NSCharacterSet characterSetWithCharactersInString:@"\"',:;<.?!-"]]; 
     126                        [mutableStartSet formUnionWithCharacterSet:[NSCharacterSet characterSetWithCharactersInString:@"\"',:;<.?!-@"]]; 
    127127                        startSet = [[NSCharacterSet characterSetWithBitmapRepresentation:[mutableStartSet bitmapRepresentation]] retain]; 
    128128                        [mutableStartSet release]; 
  • trunk/Frameworks/AutoHyperlinks Framework/UnitTests/HyperlinkContextTest.m

    r24146 r24284  
    206206        [self testLaxContext:@"<><><><><<<<><><><><%@><><><><><><<<><><><><><>" withURI:@"example.com"]; 
    207207        [self testLaxContext:@"l<><><><><<<<><><><><%@><><><><><><<<><><><><><>" withURI:@"http://example.com/foo_(bar)"]; 
     208         
     209        [self testLaxContext:@"@example.com" withURI:@"example.com"]; 
    208210} 
    209211@end