FAILURE MAP
← Case archive

FA-96460 / Phone number formatting / Member archive

Extension and dial-pause parser: overlong extensions are accepted · case 05

A seven-digit extension is accepted.

Member previewVariant 5 · 3 implementations · 11 checks per implementation

Case contract

Strip and lowercase. Try markers in order: "," (pause), ";" (wait), "extension", "ext.", "ext", "#", "x" (ext); the first marker found at an index > 0 splits the string into main and extension. The main part keeps its digits; the extension is stripped and, when a marker was found, must be 1..6 digits. Return {"main", "ext", "mode"} or None.

Why this case matters

Extensions and pause characters decide what a softphone dials after the call connects; a wrong split rings the wrong desk.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
seven-digit extension rejected{"ext": "1234567", "main": "5550159", "mode": "ext"}nullFailed

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 ↗