diff --git a/app/src/main/java/io/legado/app/utils/RegexExtensions.kt b/app/src/main/java/io/legado/app/utils/RegexExtensions.kt index d6e7a4421..aa1d5bd41 100644 --- a/app/src/main/java/io/legado/app/utils/RegexExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/RegexExtensions.kt @@ -5,7 +5,8 @@ import com.script.SimpleBindings import io.legado.app.constant.AppConst /** - * 带有超时检测的正则替换 + * 带有js功能的正则替换 + * 采用com.google.re2j.Pattern,不会导致无限执行 */ fun CharSequence.replaceRegex(regex: String, replacement: String): Result { return kotlin.runCatching {