Unbreakable space should be also detected as valid for phone numbers (used by iOS to format contacts)

This commit is contained in:
Gautier Pelloux-Prayer 2014-10-29 16:54:51 +01:00
parent 18e619884c
commit b84133da77

View file

@ -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;
}