Skip to content

Commit

Permalink
Do not allow uppercase on domain part of email address
Browse files Browse the repository at this point in the history
  • Loading branch information
aatuny committed Jan 3, 2024
1 parent b0abb6c commit 59f03c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file removed .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion src/frontend/components/validation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const regexPatterns = {
integerString: /^\d+$/,
yearString: /^[0-9]{4}$/,
twoDigitInteger: /^\d{1,2}$/,
email: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,5}$/,
email: /^[a-zA-Z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/,
zip: /^\d{5}$/,
city: /^[a-zåäöA-ZÅÄÖ\s-]{2,}$/,
phone: /^[+0-9()\s-]{5,}$/,
Expand Down

0 comments on commit 59f03c1

Please sign in to comment.