I have the following input-form-control:
input.form-control(
ng-model='controller.password'
ng-minlength='1'
ng-maxlength='8'
name='password'
type="{{ controller.passwordShowType }}"
ng-pattern='controller.PASSWORD'
required
)
in controller:
PASSWORD = /^[A-Za-z0-9!-@#$%^&*()+<>]{1,8}$/;
For this input I want to allow only these symbols:
'abcdefghijklmnopqrstuvwxyz!@#$%^&*()-+<>ABCDEFGHIJKLMNOP1234567890'
But if I use my regex as above, I can input ',' or '.' symbols. What's the correct regexp for this to work ?