This commit is contained in:
kunfei 2022-01-18 22:43:24 +08:00
parent a6d5efc1d7
commit 1fc92dd0d7

View File

@ -323,7 +323,7 @@ class TextFile(private val book: Book) {
val list = arrayListOf<Pattern>()
var maxCs = 1
for (tocRule in rules) {
val pattern = Pattern.compile(tocRule.rule, Pattern.MULTILINE)
val pattern = tocRule.rule.toPattern(Pattern.MULTILINE)
val matcher = pattern.matcher(content)
var cs = 0
while (matcher.find()) {