Update chapter recognition and related tests

Includes 3e07100dc2

Co-authored-by: Saud-97 <Saud-97@users.noreply.github.com>
This commit is contained in:
arkon
2022-08-13 12:37:02 -04:00
parent 34ac39e7e5
commit 4a71022a60
13 changed files with 299 additions and 1180 deletions

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 {