Changeset 3681

Show
Ignore:
Timestamp:
07/02/07 07:28:57 (1 year ago)
Author:
timothy
Message:

Allow underscores in email address links.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Additions/NSAttributedStringMoreAdditions.m

    r3583 r3681  
    323323 
    324324        // catch well-formed email addresses like "timothy@hatcher.name" or "timothy@javelin.cc" 
    325         regex = [AGRegex regexWithPattern:@"[\\p{L}\\p{N}.+-]+@(?:[\\p{L}-]+\\.)+[\\w]{2,}" options:AGRegexCaseInsensitive]; 
     325        regex = [AGRegex regexWithPattern:@"[\\p{L}\\p{N}.+-_]+@(?:[\\p{L}-_]+\\.)+[\\w]{2,}" options:AGRegexCaseInsensitive]; 
    326326        matches = [regex findAllInString:[self string]]; 
    327327        enumerator = [matches objectEnumerator];