I'm trying to trying to verify that a users password meets certain criteria, i.e. it contains both letters and numbers. I'm using the below code and then passing the password to Wix CRM. However if the user inputs "+" as part of their chosen password Wix it will not allow them to register.
Does anyone know how to allow the "+" symbol to be entered as part of their password ?
//declare function to enforce letter in password var letters = /^(?=.*[a-zA-Z]).+$/; //declare function to enforce number in password
var number = /^(?=.*[0-9_\W]).+$/;