(value: Option<String>)
| 314 | } |
| 315 | |
| 316 | fn normalize_optional_string(value: Option<String>) -> Option<String> { |
| 317 | value |
| 318 | .map(|item| item.trim().to_string()) |
| 319 | .filter(|item| !item.is_empty()) |
| 320 | } |
| 321 | |
| 322 | fn validate_frontend_url(raw: &str) -> Result<()> { |
| 323 | let parsed = Url::parse(raw).with_context(|| format!("invalid URL: {raw}"))?; |
no test coverage detected