Skip to content

Commit b03cfce

Browse files
committed
[play-on-spotify] fix intl-* links not getting matched
1 parent bca1fc6 commit b03cfce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/play-on-spotify/spotify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const {
66
} = shelter;
77

88
export const URL_REGEX =
9-
/^https:\/\/open\.spotify\.com\/(track|album|playlist|episode|show|artist|user)(?:\/)([a-z0-9]+).*$/i;
9+
/^https:\/\/open\.spotify\.com\/(?:[a-z\-]+\/)?(track|album|playlist|episode|show|artist|user)(?:\/)([a-z0-9]+).*$/i;
1010

1111
function getDeviceAndSocket() {
1212
if (!SpotifyStore.hasConnectedAccount()) {

0 commit comments

Comments
 (0)