diff --git a/app/src/main/java/io/legado/app/model/localBook/TextFile.kt b/app/src/main/java/io/legado/app/model/localBook/TextFile.kt index 6c759e4c0..02c05ca29 100644 --- a/app/src/main/java/io/legado/app/model/localBook/TextFile.kt +++ b/app/src/main/java/io/legado/app/model/localBook/TextFile.kt @@ -306,7 +306,7 @@ class TextFile(private val book: Book) { */ private fun getTocRule(content: String): Pattern? { tocRules.addAll(getTocRules(content, getTocRules().reversed())) - tocRules.addAll(getTocRules(content, appDb.txtTocRuleDao.disabled.reversed())) + //tocRules.addAll(getTocRules(content, appDb.txtTocRuleDao.disabled.reversed())) return tocRules.firstOrNull() }