Skip to main content

matches

Function matches 

Source
pub fn matches(
    rules: &BTreeMap<String, Value>,
    name: &str,
    text: &str,
) -> Result<bool, String>
Expand description

便捷入口:直接用「规则表 + 规则名」匹配文本(默认双语关键字)。