🐛 Fixes regex in multiple lines

Signed-off-by: Ash Svitan <selfsigned-ash@proton.me>
This commit is contained in:
2026-04-30 13:23:10 +02:00
parent fd6bf0adbd
commit eea8204fe2
2 changed files with 39 additions and 15 deletions
+8 -3
View File
@@ -13,7 +13,7 @@ fn main() -> Result<(), Error> {
return Err(Error::new(ErrorKind::Other, "No vaults found"));
}
let mut vault = String::new();
let vault;
match env::var(ENV_VAR_DEFAULT_VAULT) {
Ok(default_vault) => {
if vaults.contains(&default_vault) {
@@ -27,10 +27,15 @@ fn main() -> Result<(), Error> {
}
Err(_) => {
vault = vaults.get(0).unwrap().clone();
println!("No default vault found (you can set it with {}), using {}...", ENV_VAR_DEFAULT_VAULT, vault);
println!(
"No default vault found (you can set it with {}), using {}...",
ENV_VAR_DEFAULT_VAULT, vault
);
}
};
println!("selected: {:?}", vault);
let items = pass::get_items(&vault);
println!("{:?}", items);
return Ok(());
}