1
0
Fork 0

strip leading slash

a leading slash causes `url::Url` to replace the entire existing path
This commit is contained in:
Cyborus 2024-01-18 17:43:56 -05:00
parent 83c236a02f
commit ec3a9e74c4
No known key found for this signature in database
2 changed files with 381 additions and 413 deletions

View file

@ -488,6 +488,9 @@ fn sanitize_path_arg(mut path: &str) -> eyre::Result<String> {
out.push_str(&head.to_snake_case());
out.push('}');
}
if out.starts_with("/") {
out.remove(0);
}
Ok(out)
}

File diff suppressed because it is too large Load diff