mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 13:40:47 +00:00
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:
@@ -123,7 +123,7 @@
|
||||
},
|
||||
|
||||
maybeNumber: function(number) {
|
||||
return number.match(/^\+?[0-9]*$/);
|
||||
return number.replace(/[\s-.\(\)]*/g,'').match(/^\+?[0-9]*$/);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user