Fixes: incorrect sorting when chapter name contains hyphens '-'

Co-Authored-By: saud-97 <39028181+saud-97@users.noreply.github.com>
This commit is contained in:
Jays2Kings 2022-05-24 20:40:34 -04:00
parent 2d51c428d7
commit 44f2458f46

View file

@ -46,8 +46,8 @@ object ChapterRecognition {
// Get chapter title with lower case
var name = chapter.name.lowercase()
// Remove comma's from chapter.
name = name.replace(',', '.')
// Remove comma's or hyphens.
name = name.replace(',', '.').replace('-', '.')
// Remove unwanted white spaces.
unwantedWhiteSpace.findAll(name).let {