bugfix: acl rule pattern match error for tree rule

This commit is contained in:
hanwei
2023-07-30 17:32:55 +08:00
committed by ty
parent 79d5c46187
commit acc776852f

View File

@@ -192,7 +192,7 @@ impl ParsingRules {
fn add_regex_rule(&mut self, mut rule: String) {
static TREE_SET_RULE_EQUIV: Lazy<Regex> = Lazy::new(|| {
RegexBuilder::new(
r#"^(?:(?:\((?:\?:)?\^\|\\\.\)|(?:\^\.(?:\+|\*))?\\\.)((?:[\w-]+(?:\\\.)?)+)|\^((?:[\w-]+(?:\\\.)?)+))\$$"#,
r#"^(?:(?:\((?:\?:)?\^\|\\\.\)|(?:\^\.(?:\+|\*))?\\\.)((?:[\w-]+(?:\\\.)?)+)|\^((?:[\w-]+(?:\\\.)?)+))\$?$"#,
)
.unicode(false)
.build()