feat: init project and add user module
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import * as StringUtils from './string-utils';
|
||||
|
||||
const Utils = {
|
||||
StringUtils,
|
||||
};
|
||||
|
||||
export default Utils;
|
||||
@@ -0,0 +1,9 @@
|
||||
export const normalizePhone = (phone: string): string => {
|
||||
phone = phone.replace(/\D/g, '');
|
||||
|
||||
if (phone.startsWith('9')) {
|
||||
return '0' + phone;
|
||||
}
|
||||
|
||||
return phone;
|
||||
};
|
||||
Reference in New Issue
Block a user