From cbc5d345786293acf14f317aab555498030061c2 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sun, 27 Oct 2019 17:12:48 -0300 Subject: Tweak track-number regex to include any whitespace So tracks like '05 - Artist - Apple Banana.mp3' will just show as 'Artist - Apple Banana.mp3'. (Before, it showed cut off before the first dash.) --- playlist-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playlist-utils.js b/playlist-utils.js index 9c6f0ed..082a734 100644 --- a/playlist-utils.js +++ b/playlist-utils.js @@ -529,7 +529,7 @@ function getNameWithoutTrackNumber(track) { // This is the expression that matches a track number at the start of // a track's title. - const regex = /^[0-9\-]+\s(?=\S)/ + const regex = /^[0-9\-\s]+/ // First we need to determine whether every track in the group even starts // with a track number. -- cgit 1.3.0-6-gf8a5