diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-11-11 19:36:15 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-11-11 19:48:55 +0100 |
commit | 9dc345c83383ca5caf1f805d6546d3ae433ba815 (patch) | |
tree | 34f0d7563d3ba229b3d138f0dbd9d7ea2acf1643 /lib/entry | |
parent | 61ade452de4694e8347be01db4914509847f8aba (diff) |
Fix: a tag can contain ascii digits
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/entry')
-rw-r--r-- | lib/entry/libimagentrytag/src/tag.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/entry/libimagentrytag/src/tag.rs b/lib/entry/libimagentrytag/src/tag.rs index a2d68e73..d76ee98f 100644 --- a/lib/entry/libimagentrytag/src/tag.rs +++ b/lib/entry/libimagentrytag/src/tag.rs @@ -36,7 +36,7 @@ pub fn is_tag_str(s: &str) -> Result<(), Error> { fn check_tag_string(s: &str) -> Result<(), String> { 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 is_alphanum = |s: &&str| s.chars().all(|c| c.is_alphanumeric()); |