Skip to content
Browse files

fix youtube playlist parser

  • Loading branch information...
1 parent 62274f1 commit 03747d4a81da7d7883bde5288ea5647ea9d42231 @cshum committed Oct 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/playlist/youtube.js
View
2 js/playlist/youtube.js
@@ -1,7 +1,7 @@
define(['jquery','song'],function($,Song){
function parseId(url){
var prefix = '(list=|p=|/playlists/)',
- id = '[a-zA-Z0-9]*',
+ id = '[a-zA-Z0-9_\-]*',
match = prefix+id;
return url.match(new RegExp(match))[0].replace(new RegExp(prefix),'');
}

0 comments on commit 03747d4

Please sign in to comment.
Something went wrong with that request. Please try again.