From bd2c93eb95e7f1af73afb0bd6fd5390d87d0eeab Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 20 Jun 2024 01:26:03 -0400 Subject: [PATCH] try a bit less hard to parse input as a url --- src/bin/rbw/commands.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/rbw/commands.rs b/src/bin/rbw/commands.rs index 82aa90d..de825af 100644 --- a/src/bin/rbw/commands.rs +++ b/src/bin/rbw/commands.rs @@ -39,7 +39,9 @@ pub fn parse_needle(arg: &str) -> Result { return Ok(Needle::Uuid(uuid)); } if let Ok(url) = Url::parse(arg) { - return Ok(Needle::Uri(url)); + if url.is_special() { + return Ok(Needle::Uri(url)); + } } Ok(Needle::Name(arg.to_string()))