Fix:Comic reader not detecting file sort order when number is more than 5-digit #2036

This commit is contained in:
advplyr 2023-08-29 15:47:34 -05:00
parent f8f94f2a6d
commit 4585d2816b

View File

@ -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