Skip to main content

is_valid_source_id

Function is_valid_source_id 

Source
pub fn is_valid_source_id(id: &str) -> bool
Expand description

Whether id can name a source: lowercase letters, digits and -, starting with a letter or digit, at most 40 characters. It goes into URLs and cache keys, so nothing that needs escaping is allowed in.