From d58171fef70ebdda1b9c65e7e310476b71478f19 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Sat, 30 Nov 2024 17:47:11 -0800 Subject: [PATCH] Revert "Revert one of the Windows-specific changes because causing a test failure" This reverts commit 144e1e53cafaa7b97820053b4821807ff31f8215. --- lychee-lib/src/types/input.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lychee-lib/src/types/input.rs b/lychee-lib/src/types/input.rs index c32be7feb8..a0fba1ca3e 100644 --- a/lychee-lib/src/types/input.rs +++ b/lychee-lib/src/types/input.rs @@ -140,11 +140,7 @@ impl Input { Ok(url) if url.scheme() == "http" || url.scheme() == "https" => { InputSource::RemoteUrl(Box::new(url)) } - Ok(_) => { - // URL parsed successfully, but it's not http or https - return Err(ErrorKind::InvalidFile(PathBuf::from(value))); - } - _ => { + Ok(_) | _ => { // this seems to be the only way to determine if this is a glob pattern let is_glob = glob::Pattern::escape(value) != value;