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 e54a2e42c9
commit 8d6e9bef32
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 {