Allow passing phone numbers with white spaces

E.g.: "+39 123 456 7890"
This commit is contained in:
Dan 2018-04-05 11:31:01 +02:00
parent fcf0e4515f
commit f8b272a925

View File

@ -961,7 +961,7 @@ class Client:
except (AttributeError, binascii.Error, struct.error):
pass
peer_id = peer_id.lower().strip("@+")
peer_id = re.sub(r"[@+\s]", "", peer_id.lower())
try:
int(peer_id)