mirror of
https://github.com/gedoor/legado.git
synced 2024-07-19 01:17:25 +08:00
优化
This commit is contained in:
parent
89fae49fd3
commit
264f94994d
@ -267,8 +267,8 @@ class AnalyzeRule(
|
||||
var result: Any? = null
|
||||
val content = mContent ?: this.content
|
||||
val ruleList = splitSourceRule(ruleStr, true)
|
||||
content?.let { o ->
|
||||
if (ruleList.isNotEmpty()) result = o
|
||||
if (content != null && ruleList.isNotEmpty()) {
|
||||
result = content
|
||||
for (sourceRule in ruleList) {
|
||||
putRule(sourceRule.putMap)
|
||||
sourceRule.makeUpRule(result)
|
||||
@ -300,8 +300,8 @@ class AnalyzeRule(
|
||||
var result: Any? = null
|
||||
val content = mContent ?: this.content
|
||||
val ruleList = splitSourceRule(ruleStr, true)
|
||||
content?.let { o ->
|
||||
if (ruleList.isNotEmpty()) result = o
|
||||
if (content != null && ruleList.isNotEmpty()) {
|
||||
result = content
|
||||
for (sourceRule in ruleList) {
|
||||
putRule(sourceRule.putMap)
|
||||
result?.let {
|
||||
|
Loading…
Reference in New Issue
Block a user