Skip to content

[FEATURE REQUEST] Add formatLandlinePhone()/formatMobilePhone()/formatPhone() #186

@silvioprog

Description

@silvioprog

Hi.

It would be nice to provide the following format functions:

  • formatLandlinePhone(landlinePhone: string): string - Formats a landline phone, e.g.: 9999999999(99) 9999-9999;
  • formatMobilePhone(mobilePhone: string): string - Formats a mobile phone, e.g.: 99999999999(99) 99999-9999;
  • formatPhone(phone: string): string - Formats a landline or mobile phone, e.g.: 9999999999(99) 9999-9999 or 99999999999(99) 99999-9999.

cheers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions