Update RuleAnalyzer.kt

优化
pull/1111/head
bushixuanqi 3 years ago committed by GitHub
parent 9dd2b3935d
commit 07143c172d
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

@ -422,7 +422,7 @@ class RuleAnalyzer(data: String, code: Boolean = false) {
while (consumeTo(inner)) { //拉取成功返回true,ruleAnalyzes里的字符序列索引变量pos后移相应位置,否则返回false,且isEmpty为true
if (chompCodeBalanced('{', '}')) {
val frv = fr(queue.substring(start + stepStart, pos - stepEnd))
val frv = fr(queue.substring(start + startStep, pos - endStep))
if (frv != null) {
st.append(queue.substring(startX, start) + frv) //压入内嵌规则前的内容,及内嵌规则解析得到的字符串
startX = pos //记录下次规则起点

Loading…
Cancel
Save