Skip to content

Commit 7ad2842

Browse files
author
Jemiiah
committed
feat: resolving issues
1 parent 4e69425 commit 7ad2842

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/log_scrub.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ fn patterns() -> &'static [(&'static str, Regex)] {
5858
// Stellar seed: 'S' followed by 55 base58 characters (56 total)
5959
(
6060
"stellar_seed",
61-
Regex::new(
62-
r"\bS[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{55}\b",
63-
)
61+
Regex::new(r"S[A-Za-z0-9]{54}")
6462
.expect("stellar_seed regex"),
6563
),
6664
// PEM private key block (single-line or multi-line collapsed)
@@ -84,9 +82,7 @@ fn patterns() -> &'static [(&'static str, Regex)] {
8482
// and other long plain alphanumeric identifiers.
8583
(
8684
"base64_segment",
87-
Regex::new(
88-
r"(?:[A-Za-z0-9+/]{20,}[+/][A-Za-z0-9+/]{19,}={0,2}|[A-Za-z0-9+/]{40,}={1,2})",
89-
)
85+
Regex::new(r"[A-Za-z0-9+/]{20,}={1,2}")
9086
.expect("base64_segment regex"),
9187
),
9288
// Hex strings ≥ 64 chars (SHA-256 or larger hashes of key material)

0 commit comments

Comments
 (0)