selectors

Function sanitize_moniker_for_selectors

Source
pub fn sanitize_moniker_for_selectors(moniker: impl AsRef<str>) -> String
Expand description

Sanitizes a moniker raw string such that it can be used in a selector. Monikers have a restricted set of characters a-z, 0-9, _, ., -. Each moniker segment is separated by a \. Segments for collections also contain :. That : will be escaped.