disallow "+" in repo names

This commit is contained in:
John Turner
2025-11-22 00:13:57 +00:00
parent 64065b753b
commit c06360aed6

View File

@@ -240,7 +240,7 @@ impl<'a> Parseable<'a, &'a str> for Repo {
fn parser() -> Self::Parser { fn parser() -> Self::Parser {
let start = ascii_alphanumeric().or(one_of("_".chars())); let start = ascii_alphanumeric().or(one_of("_".chars()));
let rest = ascii_alphanumeric() let rest = ascii_alphanumeric()
.or(one_of("+_-".chars())) .or(one_of("_-".chars()))
.repeated() .repeated()
.many(); .many();
@@ -579,6 +579,7 @@ mod test {
">=dev-libs/libgee-0-8.5:0..8=", ">=dev-libs/libgee-0-8.5:0..8=",
"<dev-haskell/wai-3.3:=[]", "<dev-haskell/wai-3.3:=[]",
">=kde-frameworks/kcrash-2.16.0:6*", ">=kde-frameworks/kcrash-2.16.0:6*",
"0-f/merreka+m::k+",
]; ];
for atom in atoms { for atom in atoms {