Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix youtube playlist parser

  • Loading branch information...
commit 03747d4a81da7d7883bde5288ea5647ea9d42231 1 parent 62274f1
@cshum authored
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),'');
}
Please sign in to comment.
Something went wrong with that request. Please try again.