Skip to main content

valid_image_ref

Function valid_image_ref 

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

True for a plausible local image reference: [A-Za-z0-9][A-Za-z0-9._/:@-]*. Rejects a leading - (it would be read as an option by docker), spaces and any shell or control character.