Merge pull request #1578 from 52fisher/master

TXT初始化目录时不应启用已关闭的规则
This commit is contained in:
kunfei authored and GitHub committed 2022-02-04 09:19:32 +08:00
commit 58425e236c
1 file changed
+1 -1
@@ -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()
}