Function matrix_sdk::sanitize_server_name
source ยท pub fn sanitize_server_name(s: &str) -> Result<OwnedServerName, IdParseError>
Expand description
Creates a server name from a user supplied string. The string is first sanitized by removing whitespace, the http(s) scheme and any trailing slashes before being parsed.