Merge pull request #1684 from syomie/master

优化补全
pull/1688/head
kunfei 3 years ago committed by GitHub
commit 142ed3af30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/src/main/java/io/legado/app/help/RuleComplete.kt

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

Loading…
Cancel
Save