forked from gentoo-utils/gentoo-utils
dont allow "." in repo names
This commit is contained in:
@@ -216,7 +216,7 @@ impl<'a> Parseable<'a, &'a str> for Repo {
|
|||||||
|
|
||||||
fn parser() -> Self::Parser {
|
fn parser() -> Self::Parser {
|
||||||
let start = alphanumeric().or(one_of("_".chars()));
|
let start = alphanumeric().or(one_of("_".chars()));
|
||||||
let rest = alphanumeric().or(one_of("+_.-".chars())).repeated().many();
|
let rest = alphanumeric().or(one_of("+_-".chars())).repeated().many();
|
||||||
|
|
||||||
start
|
start
|
||||||
.and(rest)
|
.and(rest)
|
||||||
|
|||||||
Reference in New Issue
Block a user