Skip to content

Commit b18980b

Browse files
committed
allowlist: fix hex color pattern to cover OPF bare-digit extractions
1 parent 1fe5e17 commit b18980b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.pii-allowlist

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
# One regex per line. See https://github.com/vekexasia/git-shield#allowlist
33

44
# ── CSS hex color literals ──
5-
# 6-digit hex color values in palette definitions and test fixtures.
6-
#[0-9a-fA-F]{6}
5+
# OPF extracts hex colors in two forms: '"#cc9166' (with leading quote) or
6+
# 'C47A4F' (bare uppercase digits when the model drops the # prefix).
7+
# Pattern: optional leading quote/hash, exactly 6 hex digits, optional trailing noise.
8+
(?i)^["#]*[0-9a-f]{6}["#,]*$
79

810
# ── Public URLs that aren't PII ──
911
^https?://(www\.)?keepachangelog\.com(/.*)?$

0 commit comments

Comments
 (0)