dont allow "." in repo names

This commit is contained in:
John Turner
2025-11-18 04:24:41 +00:00
parent c75a38f615
commit e0cc7f6a03

View File

@@ -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)