Skip to content
Snippets Groups Projects
Commit 1c0da729 authored by eirikmda's avatar eirikmda
Browse files

location name regex

parent 73b76c80
No related branches found
No related tags found
1 merge request!59Resolve "æøåÆØÅ"
......@@ -6,7 +6,7 @@ export const EMAIL_REGEX = "^[ÆØÅæøåa-zA-Z0-9_.+-]+@[ÆØÅæøåa-zA-Z0-9
export const PASSWORD_REGEX = "^(?=.*[ÆØÅæøåA-Za-z])(?=.*\\d)[ÆØÅæøåA-Za-z\\d]{2,}$"; // 9 characters, at least one letter and one number
export const MEASUREMENT_REGEX = "^(\\d+(?:[\\.\\,]\\d{1,2})?)$"; // Accepts integers and decimal numbers with comma or period. 2 decimal precision!
export const INTEGER_REGEX = "^[0-9]*[1-9][0-9]*$"; //Accepts only integers
export const LEGAL_LOCATION_REGEX = "^[\\w\\-]+$"; //Accepts trings containing legal file characters
export const LEGAL_LOCATION_REGEX = "^[ÆØÅæøå\\w\\-]+$"; //Accepts trings containing legal file characters
/**************************************** FEEDBACK MESSAGES *****************************************/
export const INVALID_EMAIL_MESSAGE = "Invalid email!";
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment