MatrixPatterns

This class contains pattern to match the different Matrix ids Ref: https://matrix.org/docs/spec/appendices#identifier-grammar

Functions

Link copied to clipboard
Link copied to clipboard

Extract server name from a matrix id.

Link copied to clipboard

Extract user name from a matrix id.

Link copied to clipboard

Return the domain form a userId. Examples:

Link copied to clipboard

Tells if a string is a valid event id.

Link copied to clipboard

Tells if a string is a valid group id.

Link copied to clipboard
Link copied to clipboard

Tells if a string is a valid room alias.

Link copied to clipboard
fun isRoomId(str: String?): Boolean

Tells if a string is a valid room id.

Link copied to clipboard
fun isUserId(str: String?): Boolean

Tells if a string is a valid user Id.

Link copied to clipboard

Orders which are not strings, or do not consist solely of ascii characters in the range \x20 (space) to \x7E (~), or consist of more than 50 characters, are forbidden and the field should be ignored if received.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val SEP_REGEX: String