Skip to main content

is_valid_uuid

Function is_valid_uuid 

Source
pub(crate) fn is_valid_uuid(s: &str) -> bool
Expand description

True if s is a canonical 8-4-4-4-12 hyphenated UUID. The length guard rejects the hyphenless / braced / URN forms that Uuid::try_parse otherwise accepts - session ids on disk are always the hyphenated form the CLI emits.