Fix: a tag can contain ascii digits
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
61ade452de
commit
9dc345c833
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ pub fn is_tag_str(s: &str) -> Result<(), Error> {
|
||||||
fn check_tag_string(s: &str) -> Result<(), String> {
|
fn check_tag_string(s: &str) -> Result<(), String> {
|
||||||
trace!("Checking whether '{}' is a valid tag", s);
|
trace!("Checking whether '{}' is a valid tag", s);
|
||||||
|
|
||||||
let is_lower = |s: &&str| s.chars().all(|c| c.is_lowercase());
|
let is_lower = |s: &&str| s.chars().all(|c| c.is_lowercase() || c.is_ascii_digit());
|
||||||
let no_whitespace = |s: &&str| s.chars().all(|c| !c.is_whitespace());
|
let no_whitespace = |s: &&str| s.chars().all(|c| !c.is_whitespace());
|
||||||
let is_alphanum = |s: &&str| s.chars().all(|c| c.is_alphanumeric());
|
let is_alphanum = |s: &&str| s.chars().all(|c| c.is_alphanumeric());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue