Changeset 39102

Show
Ignore:
Timestamp:
01/07/12 00:43:57 (2 years ago)
Author:
NeoCat
Message:

Merge remote-tracking branch 'wa-/url19'

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/twicli/twicli.js

    r39094 r39102  
    578578        var s = $("fst").value.replace( 
    579579                        /https?:\/\/[^\/\s]*[\w!#$%&'()*+,.\/:;=?@~-]+(?=&\w+;)|https?:\/\/[^\/\s]*[\w!#$%&'()*+,.\/:;=?@~-]+/g, 
    580                         function(t) {return t_co_maxstr + (t.substr(t.length-1) == ')' ? ')' : '');}); 
     580                        function(t) {return t_co_maxstr.replace(/^http/, t.substr(0, t.indexOf(':'))) + (t.substr(t.length-1) == ')' ? ')' : '')}); 
    581581        $("counter").innerHTML = 140 - footer.length - s.length; 
    582582}