Implemented better validation inside avvikelse-report

This commit is contained in:
Erik Tiekstra
2021-10-11 14:39:48 +02:00
parent 99c0ac3ae3
commit 7c37fae163
5 changed files with 46 additions and 16 deletions

View File

@@ -1,2 +1,3 @@
export const EMAIL_REGEX = /^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$/;
export const ISO_DATE_NO_TIME = /^\d{4}[-/\s]?((((0[13578])|(1[02]))[-/\s]?(([0-2][0-9])|(3[01])))|(((0[469])|(11))[-/\s]?(([0-2][0-9])|(30)))|(02[-/\s]?[0-2][0-9]))$/;
export const CHARACTER_REGEX = /\w/;