Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit c9013a6

Browse files
Hubert KosterHubert Koster
authored andcommitted
refactoring code
1 parent c76de50 commit c9013a6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/javascript/app/common/form_validation.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ const Validation = (() => {
160160
// ----- Validation Methods -----
161161
// ------------------------------
162162

163-
// The unicodes in the validEmail check, only select latin alphabet characters.
164-
// This allows filtering other invalid unicode alphabet characters.
165-
const validEmail = value => /^(([a-zA-Z0-9\u0080-\u00ff\u0100-\u017f\u0180-\u024f][^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/.test(value);
163+
const validEmail = value => /^(([a-zA-Z0-9][^!@£$%^&*=/?§±~<>(){}[\]\\.,;:\s@"'`]+(\.[^!@£$%^&*=/?§±~<>(){}[\]\\.,;:\s@"'`]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/.test(value);
166164
const validRequired = (value, options, field) => {
167165
if (value.length) return true;
168166
// else

0 commit comments

Comments
 (0)