Changeset 474 for trunk/ICeCoffEE


Ignore:
Timestamp:
05/02/08 09:06:41 (17 years ago)
Author:
Nicholas Riley
Message:

Only scan for closing bracket after opening bracket in IPv6 addresses (duh).

Location:
trunk/ICeCoffEE/ICeCoffEE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEParser.m

    r473 r474  
    243243    if (ICCF_StringIncludesCharacter(s, closing, range) &&
    244244        ((opening == '[' &&
    245           ICCF_IsLikelyIPv6Address(s, NSMakeRange(range.location,
    246                                                   [s rangeOfString: @"]"].location - range.location)))
     245          ICCF_IsLikelyIPv6Address(s,
     246               NSMakeRange(range.location,
     247                           [s rangeOfString: @"]" options: NSLiteralSearch range: range].location -
     248                           range.location)))
    247249         || !ICCF_IsLikelyURI(s, range))) {
    248250        range.location -= 2;
  • trunk/ICeCoffEE/ICeCoffEE/urls.plist

    r473 r474  
    9696
    9797  {
     98    uri = "http://[2001:db8::7]/bar";
     99    text = "] |http://[2001:db8::7]/bar|";
     100  },
     101
     102  {
    98103    uri = "http://en.wikipedia.org/wiki/Paprika_(2006_film)";
    99104    text = "|<http://en.wikipedia.org/wiki/Paprika_(2006_film)>|foo";
Note: See TracChangeset for help on using the changeset viewer.