FA-96638 / Phone number formatting / Member archive
SMS sender identifier classifier: arbitrary punctuation is accepted · case 03
"FAKE*CO" is accepted.
Case contract
Strip. "+" followed by 8..15 digits is a long code (else invalid). All digits: 3..6 is a short code, 8..15 is a long code rendered with a leading "+", anything else invalid. Otherwise 1..11 characters of letters, digits, space, hyphen or dot with at least one letter is an alphanumeric sender. Return [kind, value].
Why this case matters
Sender identifiers are normalized before messages are queued; a misclassified sender is rejected by the carrier or impersonates another sender.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| asterisk rejected | ["alpha", "FAKE*CO"] | ["invalid", "FAKE*CO"] | 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 ↗