aboutsummaryrefslogtreecommitdiff
path: root/src/constants/regex.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/constants/regex.ts')
-rw-r--r--src/constants/regex.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/constants/regex.ts b/src/constants/regex.ts
index 01fd9a2d..6ab045bd 100644
--- a/src/constants/regex.ts
+++ b/src/constants/regex.ts
@@ -56,3 +56,9 @@ export const genderRegex: RegExp = /^$|^[A-Za-z\- ]{2,20}$/;
*
*/
export const phoneRegex: RegExp = /([0-9]{10})/;
+
+/**
+ * The code regex has the following constraints
+ * - must be 6 digits
+ */
+export const codeRegex: RegExp = /([0-9]{6})/;