mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
Unbreakable space should be also detected as valid for phone numbers (used by iOS to format contacts)
This commit is contained in:
parent
18e619884c
commit
b84133da77
1 changed files with 5 additions and 2 deletions
|
|
@ -881,8 +881,11 @@ static bool_t is_a_phone_number(const char *username){
|
|||
*p==')' ||
|
||||
*p=='(' ||
|
||||
*p=='/' ||
|
||||
*p=='+') continue;
|
||||
else return FALSE;
|
||||
*p=='+' ||
|
||||
(unsigned char)*p== 0xca // non-breakable space (iOS uses it to format contacts phone number)
|
||||
)
|
||||
continue;
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue