Skip to content

Commit

Permalink
Suisin/Renew validation rules (#6147)
Browse files Browse the repository at this point in the history
* update letter symbol rules

* new rulels

* Updated Rules

* edited rules

* Update rules to accept multiple space
  • Loading branch information
suisin-deriv committed Aug 10, 2022
1 parent 4f527cb commit 989be3e
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\.' -])*[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

1 comment on commit 989be3e

@vercel
Copy link

@vercel vercel bot commented on 989be3e Aug 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app-git-master.binary.sx
deriv-app.vercel.app
binary.sx
deriv-app.binary.sx

Please sign in to comment.