优化补全

减少错误补全
pull/1684/head
syomie 3 years ago
parent bee9df6177
commit ed759dbe3e
  1. 4
      app/src/main/java/io/legado/app/help/RuleComplete.kt

@ -49,10 +49,10 @@ object RuleComplete {
val imgText: String
// 分离尾部规则
val regexSplit=rules.split("##|,".toRegex(),2)
val regexSplit=rules.split("""##|,\{""".toRegex(),2)
val cleanedRule=regexSplit[0]
if (regexSplit.size>1){
splitStr="##|,".toRegex().find(rules)?.value ?: ""
splitStr="""##|,\{""".toRegex().find(rules)?.value ?: ""
tailStr = splitStr + regexSplit[1]
}else{
tailStr = ""

Loading…
Cancel
Save