Reject tasks if they contain spaces
This commit is contained in:
parent
8cffdddab2
commit
9f29f0e1b7
1 changed files with 7 additions and 0 deletions
|
@ -116,6 +116,13 @@ fn get_tags<'a>(rt: &Runtime, sub: &ArgMatches<'a, 'a>) -> Option<Vec<String>> {
|
||||||
Some(tags.split(",")
|
Some(tags.split(",")
|
||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.iter()
|
.iter()
|
||||||
|
.filter(|e|
|
||||||
|
if e.contains(" ") {
|
||||||
|
warn!("Tag contains spaces: '{}'", e);
|
||||||
|
true
|
||||||
|
} else {
|
||||||
|
false
|
||||||
|
})
|
||||||
.map(|s| s.to_string())
|
.map(|s| s.to_string())
|
||||||
.collect()
|
.collect()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue