mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-02 21:44:51 +00:00
Allow passing phone numbers with white spaces
E.g.: "+39 123 456 7890"
This commit is contained in:
parent
fcf0e4515f
commit
f8b272a925
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue