FAILURE MAP
← Case archive

FA-96600 / Phone number formatting / Member archive

tel URI builder: runs of separators produce empty groups · case 05

"555 - 0115" becomes "555---0115".

Member previewVariant 5 · 3 implementations · 9 checks per implementation

Case contract

Input {"number", optional "ext", optional "context"}. A number starting with "+" is global. Digits are grouped at runs of visual separators (- . space parentheses); any other character returns None. Build "tel:" + ("+" if global) + groups joined by "-", then ";ext=" + digits when an extension is given, then for local numbers ";phone-context=" + context (required).

Why this case matters

tel URIs are exchanged between softphones, CRMs and SIP gateways; a missing context or misordered parameter makes local numbers undialable.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
global with extension"tel:+42--555--0158;ext=5""tel:+42-555-0158;ext=5"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 ↗