Handle unsupported spotify urls
This commit is contained in:
parent
f605e72699
commit
a6bca5536f
1 changed files with 1 additions and 1 deletions
|
@ -8,5 +8,5 @@ module.exports.match = function(url, type) {
|
|||
}
|
||||
|
||||
var matches = parse(url).path.match(/\/(album|track)[\/]+([^\/]+)/);
|
||||
return !!matches[2];
|
||||
return matches && !!matches[2];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue