ACL regex auto-converting support rules like ^\.*\.eu$

This commit is contained in:
zonyitoo
2021-11-09 12:37:34 +08:00
parent 7b30cddcb8
commit b7387858cc
+1 -1
View File
@@ -175,7 +175,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()