mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
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:
parent
2d51c428d7
commit
44f2458f46
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ object ChapterRecognition {
|
||||||
// Get chapter title with lower case
|
// Get chapter title with lower case
|
||||||
var name = chapter.name.lowercase()
|
var name = chapter.name.lowercase()
|
||||||
|
|
||||||
// Remove comma's from chapter.
|
// Remove comma's or hyphens.
|
||||||
name = name.replace(',', '.')
|
name = name.replace(',', '.').replace('-', '.')
|
||||||
|
|
||||||
// Remove unwanted white spaces.
|
// Remove unwanted white spaces.
|
||||||
unwantedWhiteSpace.findAll(name).let {
|
unwantedWhiteSpace.findAll(name).let {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue