Adium

Ticket #9200: spotify_uri_detection.diff

File spotify_uri_detection.diff, 0.9 kB (added by rasmus, 8 months ago)

Updated patch which escapes from < and >

  • Frameworks/AIHyperlinks

    old new  
    4444aolChatSpec     aim:gochat\?roomname=[^\ \t\n&]+ 
    4545yahooIMSpec     ymsgr:sendim\?.+ 
    4646rdarSpec        rdar:\/\/(problems?\/)?[0-9]+(&[0-9]+)* 
     47spotifySpec      spotify:(track|album|artist|search|playlist|user|radio):[^<>]+ 
    4748 
    4849 
    4950%option noyywrap 8bit caseless never-interactive prefix="SH" 
     
    9293{aolChatSpec}               {SHStringOffset += SHleng; return SH_URL_VALID;} 
    9394{yahooIMSpec}               {SHStringOffset += SHleng; return SH_URL_VALID;} 
    9495{rdarSpec}                  {SHStringOffset += SHleng; return SH_URL_VALID;} 
     96{spotifySpec}               {SHStringOffset += SHleng; return SH_URL_VALID;} 
    9597 
    9698.                           {return SH_URL_INVALID;} 
    9799%%