fix: Don't try to inject secrets into commented-out lines in the config

This commit is contained in:
2026-03-11 11:11:09 -06:00
parent 83f66e1061
commit 3fa0eb832c
+1 -1
View File
@@ -15,7 +15,7 @@ use inquire::{Password, PasswordDisplayMode, required};
use std::sync::{Arc, LazyLock};
use tokio::runtime::Handle;
pub static SECRET_RE: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"\{\{(.+)}}").unwrap());
pub static SECRET_RE: LazyLock<Regex> = LazyLock::new(|| Regex::new(r"^[^#]*\{\{(.+)}}").unwrap());
#[derive(Debug, Default, Clone)]
pub struct Vault {