diff --git a/cli/src/commands.rs b/cli/src/commands.rs index 3595183..ef0c1bf 100644 --- a/cli/src/commands.rs +++ b/cli/src/commands.rs @@ -75,7 +75,12 @@ pub fn parse_command(args: &[String], flags: &Flags) -> Result", })?; - let url = if url.starts_with("http") { + let url_lower = url.to_lowercase(); + let url = if url_lower.starts_with("http://") + || url_lower.starts_with("https://") + || url_lower.starts_with("about:") + || url_lower.starts_with("data:") + || url_lower.starts_with("file:") { url.to_string() } else { format!("https://{}", url)