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
|
start
|
||||||
.and(rest)
|
.and(rest)
|
||||||
.recognize()
|
.recognize()
|
||||||
|
.verify_output(move |output: &&str| {
|
||||||
|
Name::parser()
|
||||||
|
.check_finished(InputIter::new(*output))
|
||||||
|
.is_ok()
|
||||||
|
})
|
||||||
.map(|output: &str| Repo(output.to_string()))
|
.map(|output: &str| Repo(output.to_string()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user