Function find_at_room

Source
pub(crate) fn find_at_room(s: &str) -> Option<usize>
Expand description

Find @room in the given string.

This uses the same algorithm as the pushrules from the Matrix spec to detect it in the body.

Returns the position of the first match.