Adium

Changeset 24287

Show
Ignore:
Timestamp:
07/11/2008 01:32:01 PM (6 months ago)
Author:
sholt
Message:

Patch from g-Off adding msnim scheme detection. Fixes #10432

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/AutoHyperlinks Framework/Source/AHLinkLexer.l

    r24182 r24287  
    8181gtalkSpec       gtalk:(chat|call|gtalk)\?jid=.+\@.+\.{TLDs}(&from_jid=.+\@.+\.{TLDs})? 
    8282myimSpec        myim:(addContact|sendIM)\?(((uID|cID)=[0-9]*&?)|(auto=(true|false)&?))+ 
     83msnSpec         msnim:(chat|add|voice|video)\?contact=.+\@.+\.{TLDs} 
    8384 
    8485%{ 
     
    138139{yahooIMSpec}           | 
    139140{rdarSpec}              | 
     141{msnSpec}               | 
    140142{spotifySpec}           {return AH_URL_VALID;} 
    141143 
  • trunk/Frameworks/AutoHyperlinks Framework/UnitTests/SimpleURLTest.m

    r24146 r24287  
    463463        testHyperlink(@"spotify:user:abcd1234"); 
    464464        testHyperlink(@"spotify:radio:abcd1234"); 
     465        //msnim: URIs taken from http://en.wikipedia.org/wiki/URI_scheme 
     466        testHyperlink(@"msnim:chat?contact=example@msn.com"); 
     467        testHyperlink(@"msnim:add?contact=example@msn.com"); 
     468        testHyperlink(@"msnim:voice?contact=example@msn.com"); 
     469        testHyperlink(@"msnim:video?contact=example@msn.com"); 
    465470} 
    466471