This commit is contained in:
kunfei committed 2023-03-20 10:12:35 +08:00
1 parent 1e1b87e47a
commit bdcee61a3a
1 file changed
+4 -4
@@ -642,10 +642,10 @@ class AnalyzeRule(
return it.title
}
}
return chapter?.getVariable(key)
?: book?.getVariable(key)
?: ruleData?.getVariable(key)
?: source?.get(key)
return chapter?.getVariable(key)?.takeIf { it.isNotEmpty() }
?: book?.getVariable(key)?.takeIf { it.isNotEmpty() }
?: ruleData?.getVariable(key)?.takeIf { it.isNotEmpty() }
?: source?.get(key)?.takeIf { it.isNotEmpty() }
?: ""
}