Skip to main content

valid_slug

Function valid_slug 

Source
pub fn valid_slug(slug: &str) -> bool
Expand description

Whether slug names a bug directory: lowercase ASCII letters, digits and -, starting with a letter or digit, at most MAX_SLUG long — never a path (.., a separator) whatever its source (a flag, an interface, a commit trailer of an untrusted pull request).