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:
parent
ae52c047bf
commit
3d98b54027
3 changed files with 27 additions and 1 deletions
|
@ -123,7 +123,7 @@
|
|||
},
|
||||
|
||||
maybeNumber: function(number) {
|
||||
return number.match(/^\+?[0-9]*$/);
|
||||
return number.replace(/[\s-.\(\)]*/g,'').match(/^\+?[0-9]*$/);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue