UNPKG

busy-components

Version:
21 lines (16 loc) 397 B
/** * @module components * */ import BCValidate from './bc-validate'; /** * `BusyComponents/Component/BCValidatePassword` * */ export default BCValidate.extend( { validateExpression: /^(?=.*[0-9])(?=.*[a-zA-Z])(\w|[!@#$%^&*?_~-]).{5,}$/, type: 'password', invalidError: 'Password must contain at a number, a letter, and be more than 6 characters long.', placeholder: 'Password', });