pub(crate) fn valid(value: &str) -> bool {
!value.is_empty()
&& value.len() <= 80
&& value.split(':').all(|segment| {
!segment.is_empty()
&& segment
.as_bytes()
.first()
.is_some_and(|byte| byte.is_ascii_alphanumeric())
&& segment
.bytes()
.all(|byte| byte.is_ascii_alphanumeric() || byte == b'-' || byte == b'_')
})
}