Update RuleAnalyzer.kt

简化
pull/1111/head
bushixuanqi 3 years ago committed by GitHub
parent b7e002e1fe
commit 6dcc556bd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/io/legado/app/model/analyzeRule/RuleAnalyzer.kt

@ -415,9 +415,7 @@ class RuleAnalyzer(data: String, code: Boolean = false) {
fr: (String) -> String? fr: (String) -> String?
): String { ): String {
val startXS = pos //设置最初起点
startX = pos //设置规则起点 startX = pos //设置规则起点
val st = StringBuilder() val st = StringBuilder()
while (consumeTo(inner)) { //拉取成功返回true,ruleAnalyzes里的字符序列索引变量pos后移相应位置,否则返回false,且isEmpty为true while (consumeTo(inner)) { //拉取成功返回true,ruleAnalyzes里的字符序列索引变量pos后移相应位置,否则返回false,且isEmpty为true

Loading…
Cancel
Save