Changeset 8506

Show
Ignore:
Timestamp:
03/30/08 01:42:04 (5 years ago)
Author:
Sore_0
Message:

lang/javascript/userscripts/niconico_thuminfo_check.user.js: debug & fix RegExp? ...and below, japanese test<br/>: drryさん調整ありがとうございます。<br/>・正規表現修正。実用上')'は誤検出になることが多そうなので外しました

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/userscripts/niconico_thuminfo_check.user.js

    r8482 r8506  
    253253              //add hyperlink to description 
    254254              desc = desc.replace( 
    255                   /https?:\/\/[-_.!~*'()a-zA-Z0-9:/?@&=+$,%#]+|mylist\/\d+|user\/\d+|[ns]m\d+/g, 
     255                  /https?:\/\/[-_.!~*'(a-zA-Z0-9:/?@&=+$,%#]+|mylist\/\d+|user\/\d+|[ns]m\d+/g, 
    256256                  function(word){ 
    257257                      if(word.indexOf("http") > -1){return word.link(word);} 
     
    324324    var offsetLeft  = 0; 
    325325    var offsetTop   = 0; 
    326     hile(offsetTrail){ 
     326    while(offsetTrail){ 
    327327        offsetLeft += offsetTrail.offsetLeft; 
    328328        offsetTop  += offsetTrail.offsetTop;