Fix Spotify matching with their new urls
This commit is contained in:
parent
f1d7faf02d
commit
9e4626daa4
2 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,6 @@ export default function match(url) {
|
|||
return false;
|
||||
}
|
||||
|
||||
const matches = parse(url).path.match(/\/(album|track)[/]+([^/]+)/);
|
||||
const matches = parse(url).path.match(/\/(album|track)[/]+([A-Za-z0-9]+)/);
|
||||
return matches && !!matches[2];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue