We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bca1fc6 commit b03cfceCopy full SHA for b03cfce
plugins/play-on-spotify/spotify.js
@@ -6,7 +6,7 @@ const {
6
} = shelter;
7
8
export const URL_REGEX =
9
- /^https:\/\/open\.spotify\.com\/(track|album|playlist|episode|show|artist|user)(?:\/)([a-z0-9]+).*$/i;
+ /^https:\/\/open\.spotify\.com\/(?:[a-z\-]+\/)?(track|album|playlist|episode|show|artist|user)(?:\/)([a-z0-9]+).*$/i;
10
11
function getDeviceAndSocket() {
12
if (!SpotifyStore.hasConnectedAccount()) {
0 commit comments