diff options
Diffstat (limited to 'libimagutil/src/cli_validators.rs')
-rw-r--r-- | libimagutil/src/cli_validators.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libimagutil/src/cli_validators.rs b/libimagutil/src/cli_validators.rs index bbd376f2..24340a4d 100644 --- a/libimagutil/src/cli_validators.rs +++ b/libimagutil/src/cli_validators.rs @@ -47,12 +47,3 @@ pub fn is_url(s: String) -> Result<(), String> { Url::parse(&s).map(|_| ()).map_err(|_| format!("Not a URL: {}", s)) } -pub fn is_tag(s: String) -> Result<(), String> { - use regex::Regex; - lazy_static! { static ref TAG_RE : Regex = Regex::new("[:alpha:][:word:]*").unwrap(); } - - TAG_RE - .is_match(&s) - .as_result((), format!("Not a valid Tag: '{}' - Valid is [a-zA-Z][0-9a-zA-Z]*", s)) -} - |