This commit is contained in:
Horis
2025-04-20 12:09:00 +08:00
parent ab3898d629
commit 1ee626aed7
4 changed files with 4 additions and 9 deletions
@@ -70,13 +70,6 @@ object SharedJsScope {
if (scope is ScriptableObject) {
scope.sealObject()
}
if (scope is Map<*, *>) {
scope.entries.forEach {
if (it is ScriptableObject) {
it.sealObject()
}
}
}
scopeMap[key] = WeakReference(scope)
}
return scope
@@ -97,7 +97,7 @@ class AnalyzeUrl(
private set
var type: String? = null
private set
val headerMap = HashMap<String, String>()
val headerMap = LinkedHashMap<String, String>()
private var urlNoQuery: String = ""
private var encodedForm: String? = null
private var encodedQuery: String? = null
@@ -189,7 +189,7 @@ object BookList {
baseUrl: String,
variable: String?,
log: Boolean,
filter: ((name: String, author: String) -> Boolean)? = null,
filter: ((name: String, author: String) -> Boolean)?,
ruleName: List<AnalyzeRule.SourceRule>,
ruleBookUrl: List<AnalyzeRule.SourceRule>,
ruleAuthor: List<AnalyzeRule.SourceRule>,