Skip to content

Commit

Permalink
bugfix: acl rule pattern match error for tree rule
Browse files Browse the repository at this point in the history
  • Loading branch information
chuxi authored and zonyitoo committed Jul 30, 2023
1 parent 79d5c46 commit acc7768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/shadowsocks-service/src/acl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit acc7768

Please sign in to comment.