Skip to main content

sanitize_file_stem

Function sanitize_file_stem 

Source
fn sanitize_file_stem(stem: &str) -> &str
Expand description

Normalizes a suggested file stem into a safe, non-empty value.

Returns surfer_state when the input is blank or contains characters that are broadly invalid in file names across supported platforms.