From 5387e3abba58f1ce57400a392691e8e76165717a Mon Sep 17 00:00:00 2001 From: Jules Date: Sat, 21 Mar 2026 01:21:42 +0100 Subject: [PATCH] Fix JS regex to accept Spotify URLs with locale prefix (intl-fr, en, etc.) --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 30ded88..b07b25a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -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());