From 3ba3069894b1cc4a3bf41afb8ddd0d6c59c925da Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 18 Sep 2021 13:09:30 -0500 Subject: [PATCH] Fix regex misplaced \b in volume parser --- server/utils/scandir.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/scandir.js b/server/utils/scandir.js index 5f6e0c6a..bd539566 100644 --- a/server/utils/scandir.js +++ b/server/utils/scandir.js @@ -169,7 +169,7 @@ function getAudiobookDataFromDir(abRootPath, dir, parseSubtitle = false) { */ var volumeNumber = null if (series) { - var volumeMatch = title.match(/(-(?: ?))?\b((?:Book|Vol.?|Volume) \b(\d{1,3}))((?: ?)-)?/i) + var volumeMatch = title.match(/(-(?: ?))?\b((?:Book|Vol.?|Volume) (\d{1,3}))\b((?: ?)-)?/i) if (volumeMatch && volumeMatch.length > 3 && volumeMatch[2] && volumeMatch[3]) { volumeNumber = volumeMatch[3] var replaceChunk = volumeMatch[2]