Skip to content

Commit

Permalink
Revert one of the Windows-specific changes because causing a test fai…
Browse files Browse the repository at this point in the history
…lure
  • Loading branch information
trask committed Nov 29, 2024
1 parent bdb5ec6 commit 144e1e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lychee-lib/src/types/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ impl Input {
Ok(url) if url.scheme() == "http" || url.scheme() == "https" => {
InputSource::RemoteUrl(Box::new(url))
}
Ok(_) | _ => {
Ok(_) => {
// URL parsed successfully, but it's not http or https
return Err(ErrorKind::InvalidFile(PathBuf::from(value)));
}
_ => {
// this seems to be the only way to determine if this is a glob pattern
let is_glob = glob::Pattern::escape(value) != value;

Expand Down

0 comments on commit 144e1e5

Please sign in to comment.