Skip to content

feat(pii): introduce new pii package - #1710

Merged
yannickmonney merged 7 commits into
mainfrom
feat/pii-package
May 15, 2026
Merged

yannickmonney merged 7 commits into
mainfrom
feat/pii-package

Conversation

@yannickmonney

@yannickmonney yannickmonney commented May 14, 2026 •

Copy link
Copy Markdown
Contributor

New PII-package.

@yannickmonney
yannickmonney merged commit 040d778 into main May 15, 2026
27 checks passed
@yannickmonney
yannickmonney deleted the feat/pii-package branch May 15, 2026 09:45
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
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.

1 participant