fix: greedy secrets regex caused multiple secrets on one line to fail
This commit is contained in:
1 parent
e54a2e42c9
commit
8d6e9bef32
2 files changed
+40
-19
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user