Skip to main content

STORE_ID_ALPHABET

Constant STORE_ID_ALPHABET 

Source
pub const STORE_ID_ALPHABET: &'static str;
Expand description

The characters a store id may contain, for error messages and docs.

[A-Za-z0-9_.-] — the intersection of “safe as a filesystem path component”, “safe in a URL path segment unescaped”, “safe unquoted in a shell”, and “typeable without thinking”. Notably excluded: whitespace (an id you cannot see the boundaries of), / and \ (directory escape), @ (the separator), and everything non-ASCII (because two visually identical ids under different Unicode normalisations would reintroduce exactly the two-spellings problem that the lowercase-hex rule exists to prevent).