Fix JS regex to accept Spotify URLs with locale prefix (intl-fr, en, etc.)
This commit is contained in:
@@ -125,7 +125,7 @@
|
||||
let currentDownloadId = null;
|
||||
let eventSource = null;
|
||||
|
||||
const spotifyPattern = /^https?:\/\/open\.spotify\.com\/(track|album|playlist)\/[\w-]+/;
|
||||
const spotifyPattern = /^https?:\/\/open\.spotify\.com\/[^/]+\/(track|album|playlist)\/[\w-]+/;
|
||||
|
||||
function validateUrls(text) {
|
||||
const urls = text.split('\n').filter(u => u.trim());
|
||||
|
||||
Reference in New Issue
Block a user