From 0dc003f2206b548db2b5cda7f7c072cc937d0e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Wed, 1 Mar 2017 14:26:14 +0100 Subject: [PATCH] Add play.spotify.com to spotify plugin --- js/plugins.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/plugins.js b/js/plugins.js index cc8a115..c78f283 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -197,9 +197,9 @@ plugins.factory('userPlugins', function() { addMatch(message.match(/spotify:track:[a-zA-Z-0-9]{22}/g)); addMatch(message.match(/spotify:artist:[a-zA-Z-0-9]{22}/g)); addMatch(message.match(/spotify:user:\w+:playlist:[a-zA-Z-0-9]{22}/g)); - addMatch(message.match(/open\.spotify\.com\/track\/[a-zA-Z-0-9]{22}/g)); - addMatch(message.match(/open\.spotify\.com\/artist\/[a-zA-Z-0-9]{22}/g)); - addMatch(message.match(/open\.spotify\.com\/user\/\w+\/playlist\/[a-zA-Z-0-9]{22}/g)); + addMatch(message.match(/(open|play)\.spotify\.com\/track\/[a-zA-Z-0-9]{22}/g)); + addMatch(message.match(/(open|play)\.spotify\.com\/artist\/[a-zA-Z-0-9]{22}/g)); + addMatch(message.match(/(open|play)\.spotify\.com\/user\/\w+\/playlist\/[a-zA-Z-0-9]{22}/g)); return content; });