Skip to content

Commit

Permalink
edited rules
Browse files Browse the repository at this point in the history
  • Loading branch information
suisin-deriv committed Aug 10, 2022
1 parent f7771ac commit c44e422
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const validAddress = value => !/[`~!$%^&*_=+[}{\]\\"?><|]+/.test(value);
export const validPostCode = value => value === '' || /^[A-Za-z0-9][A-Za-z0-9\s-]*$/.test(value);
export const validTaxID = value => /(?!^$|\s+)[A-Za-z0-9./\s-]$/.test(value);
export const validPhone = value => /^\+?([0-9-]+\s)*[0-9-]+$/.test(value);
export const validLetterSymbol = value => /^[A-za-z]+([a-zA-Z\.'-]+\s)*[a-zA-Z\.'-]+$/.test(value);
export const validLetterSymbol = value => /^[A-Za-z]+([a-zA-Z\.'-]+\s)*[a-zA-Z\.'-]+$/.test(value);
export const validLength = (value = '', options) =>
(options.min ? value.length >= options.min : true) && (options.max ? value.length <= options.max : true);
export const validPassword = value => /(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]+/.test(value);
Expand Down

0 comments on commit c44e422

Please sign in to comment.