Skip to main content

validate_name

Function validate_name 

Source
pub fn validate_name(name: &str) -> Result<(), String>
Expand description

Whether name may be given to a feature: a letter, then letters, digits or -, at most MAX_NAME_LEN long, not reserved and not a component id. _, :, |, ., @, # and spaces are refused because they are the separators of the names built from an id.