1000hz / bootstrap-validator

A user-friendly HTML5 form validation jQuery plugin for Bootstrap 3
http://1000hz.github.io/bootstrap-validator
MIT License
2.38k stars 1.07k forks source link

Pattern on input type password not working anymore #626

Closed Torone closed 6 years ago

Torone commented 6 years ago

Hello,

When I develop my strong password regex a few months ago I'm pretty sure it was working fine. Today I'm back to the form to improve it and I have found that it is not working anymore...

Is there something new I'm missing?

<input type="password" name="password" id="password" placeholder="Create a password" class="form-control" pattern="(?=.*[a-z])(?=.*[A-Z])((?=.*[0-9])|(?=.*[!@#$%^&*]))(?=.{8,})" data-error="Please choose a secure password that is 8 or more characters long and contains at least one each of: a lower case character, an upper case character, a number or symbol (!@#$%^&amp;*)">

Thanks.