ruma_identifiers_validation/
event_id.rsuse crate::{validate_delimited_id, Error};
pub fn validate(s: &str) -> Result<(), Error> {
if s.contains(':') {
validate_delimited_id(s, b'$')?;
} else if !s.starts_with('$') {
return Err(Error::MissingLeadingSigil);
}
Ok(())
}