Skip to content

v1.7.5: egress DLP's card pattern no longer matches a UUID's digit tail - #9

Merged
subhamviky merged 1 commit into
mainfrom
release/v1.7.5
Nov 16, 2026
Merged

subhamviky merged 1 commit into
mainfrom
release/v1.7.5

Conversation

@subhamviky

Copy link
Copy Markdown
Owner

The card pattern \b(?:\d[ -]?){13,19}\b treated a hyphen as a word boundary, so a Luhn-valid all-digit last group of a UUID was redacted. It is now (?<![\w-])\d(?:[ -]?\d){12,18}(?![\w-]): 13-19 digits never joined to a word character or hyphen on either side. Luhn check unchanged; card numbers in every tested format are still masked.

Claude-Session: https://claude.ai/code/session_01ArrRtrXyLLMMWD5wHSKbQ4

The card pattern \b(?:\d[ -]?){13,19}\b treated a hyphen as a word
boundary, so a Luhn-valid all-digit last group of a UUID was redacted.
It is now (?<![\w-])\d(?:[ -]?\d){12,18}(?![\w-]): 13-19 digits never
joined to a word character or hyphen on either side. Luhn check
unchanged; card numbers in every tested format are still masked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ArrRtrXyLLMMWD5wHSKbQ4
@subhamviky
subhamviky merged commit 4913f9d into main Nov 16, 2026
4 checks passed
@subhamviky
subhamviky deleted the release/v1.7.5 branch November 16, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants