Skip to main content

is_well_formed_code

Function is_well_formed_code 

fn is_well_formed_code(token: &str) -> bool
Expand description

Whether a token is a well-formed calendar code: non-empty after trimming and made only of ASCII letters, digits and dots. This one rule decides what lookup accepts as a member and what ingest_calendar accepts as a code, so a stray character is refused the same way wherever it appears.