canceraiddev/elm-form-builder/9.0.0

NOTE: the latest version is 28.0.1

Form.Format.Phone

Mobile phone number regular expressions and formatting.

Phone Regexes

The numbers to accept based on country.

The landline numbers to reject (we only accept mobile numbers) based on country.

Phone Formatting

formatForSubmission : CountryCode -> String -> String
formatForDisplay : CountryCode -> String -> String

The groupings of digits for phone numbers