Commit b84133da authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

Unbreakable space should be also detected as valid for phone numbers (used by...

Unbreakable space should be also detected as valid for phone numbers (used by iOS to format contacts)
parent 18e61988
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment