mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-06 16:14:11 +00:00
ACL regex auto-converting support rules like ^\.*\.eu$
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user