Skip to content

Conversation

@jbsathler
Copy link

Added support to phone numbers with country code, between available masks. i.e.:

+55 (11) 1234-5678
+55 (11) 9-1234-5678

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 96.78% when pulling 8c79e9a on jbsathler:master into 1996e11 on assisrafael:master.

@AlexandreBarroso
Copy link

AlexandreBarroso commented Mar 2, 2017

format Brasil angular2-text-mask Brasil , phone, cpf, rg,cnpj, cep.

static phoneMask = ['(', /[1-9]/, /\d/, ')', ' ', /\d/ , /\d/ , /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/];
static rgMask =  [ /\d/ , /\d/ , /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '-', /\d/];
static cpfMask =  [ /\d/ , /\d/, /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/ , /\d/, /\d/, '-', /\d/, /\d/,];
static cnpjMask = [ /\d/ , /\d/, '.', /\d/, /\d/, /\d/, '.', /\d/ , /\d/, /\d/, '/', /\d/, /\d/,/\d/, /\d/, '-', /\d/, /\d/,];
static cepMask =  [/\d/ , /\d/, /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/];

@assisrafael
Copy link
Owner

Thank you for the pull request.
However it does not pass all tests. Can you fix this?

@assisrafael
Copy link
Owner

Fixed by #299

@FabioMorcillo
Copy link

How i can disable country code from ui-br-phone-number ?

Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants