Removed ignoring uppercase line in PDF Text Parser. (As it may contain chapter name)

This commit is contained in:
acclorite 2024-08-07 14:15:17 +03:00
parent 83d5a30847
commit c5704fb34b

View file

@ -53,20 +53,6 @@ class PdfTextParser @Inject constructor(private val application: Application) :
return@forEachIndexed return@forEachIndexed
} }
if (
line.all {
if (it == ' ') {
true
} else if (it.isUpperCase() || it.isDigit() || it == '-') {
true
} else {
false
}
}
) {
return@forEachIndexed
}
if (line.all { it.isDigit() }) { if (line.all { it.isDigit() }) {
return@forEachIndexed return@forEachIndexed
} }