Skip to content

Commit

Permalink
Fix:Comic reader not detecting file sort order when number is more th…
Browse files Browse the repository at this point in the history
…an 5-digit advplyr#2036
  • Loading branch information
advplyr committed Aug 29, 2023
1 parent f8f94f2 commit 4585d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/components/readers/ComicReader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4585d28

Please sign in to comment.