0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00
logto/packages/console/src/utils/phone.ts

2 lines
104 B
TypeScript

export const parsePhoneNumber = (phone: string) =>
phone.replace(/[ ()-]/g, '').replace(/\+/g, '00');