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;