Repository navigation
feat(pii): introduce new pii package - #1710
Merged
Merged
Conversation
This was referenced Oct 11, 2026
3 of 5 tasks
tale-review-bot
pushed a commit
that referenced
this pull request
Oct 30, 2026
Since #1710 the numeric date-of-birth validator needs a four-digit year (yearLooksPlausible looks for /\d{4}/), so every two-digit-year match of the pattern knob was dropped: "DOB: 15/03/87", "Geburtsdatum: 15.03.87" and "date de naissance : 15/03/87" reached the model unmasked. A bare two-digit year stays unmasked, since on its own 15.03.87 reads as well as a version or a section number. A new composed pass masks it right after a date-of-birth context keyword of an enabled locale. The keyword sits in a lookbehind, so the mask keeps it ("DOB: [DATE_OF_BIRTH]", as with a four-digit year). The day and month must form a date in DMY, MDY or YMD order. The pattern description and the guardrails guide (EN, DE, FR) state the rule. Closes #4776 Task: TALE-154
tale-code-bot
added a commit
that referenced
this pull request
Oct 30, 2026
Since #1710 the numeric date-of-birth validator needs a four-digit year (yearLooksPlausible looks for /\d{4}/), so every two-digit-year match of the pattern knob was dropped: "DOB: 15/03/87", "Geburtsdatum: 15.03.87" and "date de naissance : 15/03/87" reached the model unmasked. A bare two-digit year stays unmasked, since on its own 15.03.87 reads as well as a version or a section number. A new composed pass masks it right after a date-of-birth context keyword of an enabled locale. The keyword sits in a lookbehind, so the mask keeps it ("DOB: [DATE_OF_BIRTH]", as with a four-digit year). The day and month must form a date in DMY, MDY or YMD order. The pattern description and the guardrails guide (EN, DE, FR) state the rule. Closes #4776 Task: TALE-154
tale-review-bot
pushed a commit
that referenced
this pull request
Oct 30, 2026
RFC 5952 ends an address in `::` when its last groups are zero, as for a subnet's router or a network written as an address (`2001:db8:abcd:12::`, `fd12:3456:789a:1::`). The ipAddress pattern's IPv6 alternative needs a group or a dotted quad after its last colon, so it offered the validator only the cut-off `2001:db8:abcd:12`, which isIP rightly refuses, and the address went through unmasked. The final group has been required since #1710. A new alternative, tried before the general one, takes such an address whole, with an optional %zone (`fe80::%eth0`) and ahead of a prefix length (`2001:db8::/32`). isIP also accepts `::`, `d::` and `e::`, so the alternative starts its first group at a word boundary and allows no letter, digit, `_` or colon right after it: `::` on its own, `std::vector`, `Feed::new()` and an rST `Example::` stay unmasked. Closes #4778 Task: TALE-156
tale-code-bot
added a commit
that referenced
this pull request
Oct 30, 2026
RFC 5952 ends an address in `::` when its last groups are zero, as for a subnet's router or a network written as an address (`2001:db8:abcd:12::`, `fd12:3456:789a:1::`). The ipAddress pattern's IPv6 alternative needs a group or a dotted quad after its last colon, so it offered the validator only the cut-off `2001:db8:abcd:12`, which isIP rightly refuses, and the address went through unmasked. The final group has been required since #1710. A new alternative, tried before the general one, takes such an address whole, with an optional %zone (`fe80::%eth0`) and ahead of a prefix length (`2001:db8::/32`). isIP also accepts `::`, `d::` and `e::`, so the alternative starts its first group at a word boundary and allows no letter, digit, `_` or colon right after it: `::` on its own, `std::vector`, `Feed::new()` and an rST `Example::` stay unmasked. Closes #4778 Task: TALE-156
tale-code-bot
added a commit
that referenced
this pull request
Oct 31, 2026
RFC 5952 ends an address in `::` when its last groups are zero, as for a subnet's router or a network written as an address (`2001:db8:abcd:12::`, `fd12:3456:789a:1::`). The ipAddress pattern's IPv6 alternative needs a group or a dotted quad after its last colon, so it offered the validator only the cut-off `2001:db8:abcd:12`, which isIP rightly refuses, and the address went through unmasked. The final group has been required since #1710. A new alternative, tried before the general one, takes such an address whole, with an optional %zone (`fe80::%eth0`) and ahead of a prefix length (`2001:db8::/32`). isIP also accepts `::`, `d::` and `e::`, so the alternative starts its first group at a word boundary and allows no letter, digit, `_` or colon right after it: `::` on its own, `std::vector`, `Feed::new()` and an rST `Example::` stay unmasked. Closes #4778 Task: TALE-156
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New PII-package.