mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
bugfix: acl rule pattern match error for tree rule
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user