From ef6b3f92d44628e38a4bce642030b13b1c6c99f0 Mon Sep 17 00:00:00 2001 From: Sam Rijs Date: Sun, 28 Jan 2018 10:08:07 +1100 Subject: [PATCH] allow dots in repo names --- src/models/repo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/repo.rs b/src/models/repo.rs index b84a901..6cd5777 100644 --- a/src/models/repo.rs +++ b/src/models/repo.rs @@ -60,7 +60,7 @@ impl FromStr for RepoQualifier { fn from_str(input: &str) -> Result { let is_valid = input.chars().all(|c| { - c.is_ascii_alphanumeric() || c == '-' || c == '_' + c.is_ascii_alphanumeric() || c == '.' || c == '-' || c == '_' }); if !is_valid { @@ -85,7 +85,7 @@ impl FromStr for RepoName { fn from_str(input: &str) -> Result { let is_valid = input.chars().all(|c| { - c.is_ascii_alphanumeric() || c == '-' || c == '_' + c.is_ascii_alphanumeric() || c == '.' || c == '-' || c == '_' }); if !is_valid {