phone regex
This commit is contained in:
parent
7e53aaf5ac
commit
d7479cd34f
2 changed files with 2 additions and 0 deletions
1
src/lib/regex/index.ts
Normal file
1
src/lib/regex/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './phone';
|
||||||
1
src/lib/regex/phone.ts
Normal file
1
src/lib/regex/phone.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export const PhoneRegex = /^(1-)?\d{3}-?\d{3}-?\d{4}$/;
|
||||||
Loading…
Add table
Reference in a new issue