♿ (phone) Remove spaces from format
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { parsePhoneNumber } from 'libphonenumber-js'
|
||||
|
||||
export const formatPhoneNumber = (phoneNumber: string) =>
|
||||
parsePhoneNumber(phoneNumber).formatInternational()
|
||||
parsePhoneNumber(phoneNumber).formatInternational().replaceAll(' ', '')
|
||||
|
||||
Reference in New Issue
Block a user