~matthiasbeyer/imag

1047a06a64be862acc0de8aabab4c11996099824 — Matthias Beyer 2 years ago 8912939
Add trace output

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 files changed, 1 insertions(+), 0 deletions(-)

M lib/entry/libimagentrytag/src/tag.rs
M lib/entry/libimagentrytag/src/tag.rs => lib/entry/libimagentrytag/src/tag.rs +1 -0
@@ 31,6 31,7 @@ pub fn is_tag(s: String) -> Result<(), String> {

pub fn is_tag_str(s: &String) -> Result<(), String> {
    use filters::filter::Filter;
    trace!("Checking whether '{}' is a valid tag", s);

    let is_lower      = |s: &String| s.chars().all(|c| c.is_lowercase());
    let no_whitespace = |s: &String| s.chars().all(|c| !c.is_whitespace());