FA-96477 / Phone number formatting / Member archive
Display masking of subscriber digits: country code digits are masked · case 02
"+42 555 ..." renders as "+** *** ..." hiding the country.
Case contract
Strip. A leading "+" and the digits right after it (the country code) are shown. Among the remaining digits only the last four are shown and the others become "*"; separators are kept. If four or fewer digits remain they are all masked.
Why this case matters
Masked numbers appear in receipts, logs and support tools; revealing too much leaks personal data and revealing too little makes verification impossible.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| international with country code kept | "+** *** *** 1234" | "+42 *** *** 1234" | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗