Skip to main content

validate

Function validate 

Source
pub fn validate(name: &str) -> Result<()>
Expand description

Check a script name: [a-z0-9][a-z0-9_-]*, at most MAX_NAME bytes, not RESERVED.

One segment and lowercase so that a name is the same string in an IRI, in a capability scope, on a file system that folds case, and in a URL path.