Create contact from number with common punctuation

The 'Create new contact' option should now appear for numbers including
parens and other common punctuation.

// FREEBIE
This commit is contained in:
lilia 2015-12-04 17:21:41 -08:00
parent ae52c047bf
commit 3d98b54027
3 changed files with 27 additions and 1 deletions

View file

@ -123,7 +123,7 @@
},
maybeNumber: function(number) {
return number.match(/^\+?[0-9]*$/);
return number.replace(/[\s-.\(\)]*/g,'').match(/^\+?[0-9]*$/);
}
});