UNPKG

@deposits/validators

Version:

A collection of Fintech-specific and general-purpose validators, designed to extend popular validation libraries like Vuelidate, Zod, and yup.

13 lines (11 loc) 235 B
export const strongPassword = (value) => { value = value.trim(); return !!( value && value.length > 7 && /\d/.test(value) && /[a-z]/.test(value) && /[A-Z]/.test(value) && /[^a-zA-Z0-9]/.test(value) ); };