Skip to content

Commit

Permalink
src: drivers: mod: Ignore :// when running legacy mode
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric authored and joaoantoniocardoso committed Dec 20, 2024
1 parent 83d05c3 commit 9aca317
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/drivers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ impl std::fmt::Debug for dyn DriverInfo {
}

fn process_old_format(entry: &str) -> Option<DriverDescriptionLegacy> {
if entry.contains("://") {
return None;
}

let captures = Regex::new(r"^(?P<scheme>\w+):(?P<arg1>[^:]+)(:(?P<arg2>\d+))?$")
.unwrap()
.captures(entry)?;
Expand Down

0 comments on commit 9aca317

Please sign in to comment.