From 1c9e6846b37b62c2636b10f506d26dc6f18dfb48 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 4 Sep 2019 11:10:44 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/data/entities/rule/ExploreRule.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/data/entities/rule/ExploreRule.kt b/app/src/main/java/io/legado/app/data/entities/rule/ExploreRule.kt index 7337e0245..61f7e4e2d 100644 --- a/app/src/main/java/io/legado/app/data/entities/rule/ExploreRule.kt +++ b/app/src/main/java/io/legado/app/data/entities/rule/ExploreRule.kt @@ -1,6 +1,7 @@ package io.legado.app.data.entities.rule import io.legado.app.constant.AppConst +import io.legado.app.help.JsExtensions import javax.script.SimpleBindings data class ExploreRule( @@ -25,6 +26,7 @@ data class ExploreRule( if (it.startsWith("", false)) { val bindings = SimpleBindings() bindings["baseUrl"] = baseUrl + bindings["java"] = JsExtensions() a = AppConst.SCRIPT_ENGINE.eval( a.substring(4, a.lastIndexOf("<")), bindings