Skip to main content

validate_identifier

Function validate_identifier 

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

Checks an application identifier: 1 to MAX_IDENTIFIER_BYTES bytes of ASCII letters, digits, . and -. It names a directory and a database as it is, so nothing else is allowed. The error says what is wrong with it.