Skip to main content

validate_text

Function validate_text 

Source
pub fn validate_text(text: &str, empty_ok: bool) -> Result<(), ComputerError>
Expand description

Empty text is refused when empty_ok is false. A null byte is always refused.