mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-04 12:01:52 +02:00
@@ -499,6 +499,10 @@ fn replace_path_placeholder(p: &HttpUrlParameter, url: &str) -> String {
|
|||||||
return url.to_string();
|
return url.to_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !p.name.starts_with(":") {
|
||||||
|
return url.to_string();
|
||||||
|
}
|
||||||
|
|
||||||
let re = regex::Regex::new(format!("(/){}([/?#]|$)", p.name).as_str()).unwrap();
|
let re = regex::Regex::new(format!("(/){}([/?#]|$)", p.name).as_str()).unwrap();
|
||||||
let result = re
|
let result = re
|
||||||
.replace_all(url, |cap: ®ex::Captures| {
|
.replace_all(url, |cap: ®ex::Captures| {
|
||||||
|
|||||||
Reference in New Issue
Block a user