Skip to content

Commit

Permalink
♿ (phone) Remove spaces from format
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 20, 2023
1 parent 16c261a commit 3d6d643
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parsePhoneNumber } from 'libphonenumber-js'

export const formatPhoneNumber = (phoneNumber: string) =>
parsePhoneNumber(phoneNumber).formatInternational()
parsePhoneNumber(phoneNumber).formatInternational().replaceAll(' ', '')

0 comments on commit 3d6d643

Please sign in to comment.