forked from gentoo-utils/gentoo-utils
verify that repo names are also valid package names
This commit is contained in:
@@ -247,6 +247,11 @@ impl<'a> Parseable<'a, &'a str> for Repo {
|
||||
start
|
||||
.and(rest)
|
||||
.recognize()
|
||||
.verify_output(move |output: &&str| {
|
||||
Name::parser()
|
||||
.check_finished(InputIter::new(*output))
|
||||
.is_ok()
|
||||
})
|
||||
.map(|output: &str| Repo(output.to_string()))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user