fix: greedy secrets regex caused multiple secrets on one line to fail

This commit is contained in:
2026-06-04 15:41:56 -06:00
parent af3d1a106a
commit e89255f89d
2 changed files with 40 additions and 19 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ use std::sync::{Arc, LazyLock};
use tokio::runtime::Handle;
use uuid::Uuid;
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 {