FAILURE MAP
← Case archive

FA-96473 / Phone number formatting / Member archive

Extension and dial-pause parser: comma and semicolon meanings are swapped · case 03

A comma is reported as wait and a semicolon as pause.

Member previewVariant 3 · 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
comma pause{"ext": "123", "main": "5550137", "mode": "wait"}{"ext": "123", "main": "5550137", "mode": "pause"}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 ↗