mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
9 lines
407 B
TypeScript
9 lines
407 B
TypeScript
|
export const emailRegEx = /^\S+@\S+\.\S+$/;
|
||
|
export const phoneRegEx = /^\d+$/;
|
||
|
export const usernameRegEx = /^[A-Z_a-z]\w*$/;
|
||
|
export const passwordRegEx = /^.{6,}$/;
|
||
|
export const webRedirectUriProtocolRegEx = /^https?:$/;
|
||
|
export const mobileUriSchemeProtocolRegEx = /^[a-z][\d_a-z]*(\.[\d_a-z]+)+:$/;
|
||
|
export const hexColorRegEx = /^#[\da-f]{3}([\da-f]{3})?$/i;
|
||
|
export const dateRegex = /^\d{4}(-\d{2}){2}/;
|