We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi.
It would be nice to provide the following format functions:
formatLandlinePhone(landlinePhone: string): string
9999999999
(99) 9999-9999
formatMobilePhone(mobilePhone: string): string
99999999999
(99) 99999-9999
formatPhone(phone: string): string
cheers
The text was updated successfully, but these errors were encountered:
Hello @silvioprog , maybe #155 solve your problem. What do you think? If not, we can split this function in three like you suggested.
Sorry, something went wrong.
Hello @hyanmandian, I'm going to test it, but a quickly look at the sources it seems will work like a charm. 😃
Maybe a split would be nice to avoid overheads when the programmer wants to format only one type (eg: mobile phone) .
What do you think to implement these functions in #155 ? If you need some help, I can help you with that.
No branches or pull requests
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
or99999999999
→(99) 99999-9999
.cheers
The text was updated successfully, but these errors were encountered: