How to set validation mask Angular 2? -
i tried set validation mask using library:
https://github.com/text-mask/text-mask/blob/master/componentdocumentation.md#readme
validation mask is:
public phone_mask = ['+', '(', '9', '9', '4', ')', ' ', /(50|51|55|70|77)/, /[0-9]/ , '-', /\d/, /\d/, /\d/, '-', /\d/, /\d/, '-', /\d/, /\d/]; this patters not work: /(50|51|55|70|77)/
this pattern allows enter numbers, need 50|51|55|70|77
Comments
Post a Comment