Changeset 37838 for websites/twicli

Show
Ignore:
Timestamp:
06/14/10 01:32:28 (4 years ago)
Author:
NeoCat
Message:

YouTube? address may include "-"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/twicli/plugins/thumbnail.js

    r37775 r37838  
    5757                                        'jsoncallback'); 
    5858                } 
    59                 else if (url.match(/^http:\/\/(?:www\.youtube\.com\/watch\?.*v=|youtu\.be\/)(\w+)/)) { 
     59                else if (url.match(/^http:\/\/(?:www\.youtube\.com\/watch\?.*v=|youtu\.be\/)([\w-]+)/)) { 
    6060                        var id = RegExp.$1; 
    6161                        addThumbnail(elem, 'http://i.ytimg.com/vi/' + id + '/default.jpg', url);