summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2023-10-25 18:31:28 +0100
committerGitHub <noreply@github.com>2023-10-25 18:31:28 +0100
commite5fae4dd76469aee7a0d50c4575ecf63f0610192 (patch)
treee4cf55274a029d9b18d70c8647567ada6c6555ec
parent9f25ce581aa886b9eb6d334d3e5538ed98f8e1a7 (diff)
Correct some secrets filter regex (#1326)
-rw-r--r--atuin-client/src/secrets.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/atuin-client/src/secrets.rs b/atuin-client/src/secrets.rs
index 0f751a8a..a1788a6e 100644
--- a/atuin-client/src/secrets.rs
+++ b/atuin-client/src/secrets.rs
@@ -9,12 +9,12 @@ pub static SECRET_PATTERNS: &[(&str, &str, &str)] = &[
),
(
"GitHub PAT (old)",
- "^ghp_[a-zA-Z0-9]{36}$",
+ "ghp_[a-zA-Z0-9]{36}",
"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", // legit, I expired it
),
(
"GitHub PAT (new)",
- "^github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59}$",
+ "github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59}",
"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", // also legit, also expired
),
(