From 4585d2816bf1cec03e3ad225a554ee93a71daaa5 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 29 Aug 2023 15:47:34 -0500 Subject: [PATCH] Fix:Comic reader not detecting file sort order when number is more than 5-digit #2036 --- client/components/readers/ComicReader.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/components/readers/ComicReader.vue b/client/components/readers/ComicReader.vue index f1d9a82f..40b28a74 100644 --- a/client/components/readers/ComicReader.vue +++ b/client/components/readers/ComicReader.vue @@ -303,8 +303,8 @@ export default { }, parseImageFilename(filename) { var basename = Path.basename(filename, Path.extname(filename)) - var numbersinpath = basename.match(/\d{1,5}/g) - if (!numbersinpath || !numbersinpath.length) { + var numbersinpath = basename.match(/\d+/g) + if (!numbersinpath?.length) { return { index: -1, filename