Allow passing phone numbers with white spaces
E.g.: "+39 123 456 7890"
This commit is contained in:
parent
fcf0e4515f
commit
f8b272a925
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user