Skip to content

Commit

Permalink
Fix second instance of regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Techwolfy committed Dec 2, 2024
1 parent a03146e commit cc89db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/utils/scandir.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function groupFileItemsIntoLibraryItemDirs(mediaType, fileItems, audiobooksOnly
// This is the last directory, create group
libraryItemGroup[_path] = [item.name]
return
} else if (dirparts.length === 1 && /^cd\d{1,3}$/i.test(dirparts[0])) {
} else if (dirparts.length === 1 && /^(cd|dis[ck])\s*\d{1,3}$/i.test(dirparts[0])) {
// Next directory is the last and is a CD dir, create group
libraryItemGroup[_path] = [Path.posix.join(dirparts[0], item.name)]
return
Expand Down

0 comments on commit cc89db0

Please sign in to comment.