Skip to main content

validate_acronym

Function validate_acronym 

Source
pub fn validate_acronym(value: &str) -> Result<String, String>
Expand description

Validate and normalize a project acronym.

Acronyms drive item ID prefixes (ACRONYM-XXXX) and must therefore be ASCII, filesystem-safe, and short. Rules: ASCII uppercase letters (A-Z) or digits (0-9), length 2-8 after trimming. Input is trimmed and uppercased; the normalized form is returned on success so callers can store it as-is.