mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-12-13 05:40:35 +05:30
Remove unnecessary non-capturing groups.
This commit is contained in:
parent
86f5b67f2f
commit
73717f6f37
@ -27,7 +27,7 @@ async fn main() -> std::io::Result<()> {
|
|||||||
}.run().await
|
}.run().await
|
||||||
}
|
}
|
||||||
|
|
||||||
static RE_DOMAIN: Lazy<Regex> = Lazy::new(|| Regex::new(r"^(?:[a-z\d.-]*\.)?((?:[a-z\d-]*)\.(?:[a-z\d-]*))$").unwrap());
|
static RE_DOMAIN: Lazy<Regex> = Lazy::new(|| Regex::new(r"^(?:[a-z\d.-]*\.)?([a-z\d-]*\.[a-z\d-]*)$").unwrap());
|
||||||
static RE_MANIFEST: Lazy<Regex> = Lazy::new(|| Regex::new("(?m)URI=\"([^\"]+)\"").unwrap());
|
static RE_MANIFEST: Lazy<Regex> = Lazy::new(|| Regex::new("(?m)URI=\"([^\"]+)\"").unwrap());
|
||||||
static RE_DASH_MANIFEST: Lazy<Regex> = Lazy::new(|| Regex::new("BaseURL>(https://[^<]+)</BaseURL").unwrap());
|
static RE_DASH_MANIFEST: Lazy<Regex> = Lazy::new(|| Regex::new("BaseURL>(https://[^<]+)</BaseURL").unwrap());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user