Skip to main content

normalize_user_code

Function normalize_user_code 

Source
fn normalize_user_code(input: &str) -> String
Expand description

Fold user input back to the stored form: uppercase, keeping only charset bytes (RFC 8628 §6.1) so hyphens, spaces and case do not defeat the lookup.