allow dots in repo names

This commit is contained in:
Sam Rijs 2018-01-28 10:08:07 +11:00
parent d274045862
commit ef6b3f92d4

View file

@ -60,7 +60,7 @@ impl FromStr for RepoQualifier {
fn from_str(input: &str) -> Result<RepoQualifier, RepoValidationError> { fn from_str(input: &str) -> Result<RepoQualifier, RepoValidationError> {
let is_valid = input.chars().all(|c| { let is_valid = input.chars().all(|c| {
c.is_ascii_alphanumeric() || c == '-' || c == '_' c.is_ascii_alphanumeric() || c == '.' || c == '-' || c == '_'
}); });
if !is_valid { if !is_valid {
@ -85,7 +85,7 @@ impl FromStr for RepoName {
fn from_str(input: &str) -> Result<RepoName, RepoValidationError> { fn from_str(input: &str) -> Result<RepoName, RepoValidationError> {
let is_valid = input.chars().all(|c| { let is_valid = input.chars().all(|c| {
c.is_ascii_alphanumeric() || c == '-' || c == '_' c.is_ascii_alphanumeric() || c == '.' || c == '-' || c == '_'
}); });
if !is_valid { if !is_valid {