Skip to main content

validate_suffix

Function validate_suffix 

Source
pub fn validate_suffix(value: &str) -> Result<(), &'static str>
Expand description

Validate a --suffix=<ext> value at parse time. Rejects path separators (/, \), NUL bytes (which terminate C strings on every supported OS), and lengths past MAX_SUFFIX_LEN. Empty suffix is allowed (means literally no extension, per FR-012 Clarification Q2).