mirror of
https://github.com/deps-rs/deps.rs.git
synced 2024-11-21 18:06:30 +00:00
allow dots in repo names
This commit is contained in:
parent
d274045862
commit
ef6b3f92d4
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ impl FromStr for RepoQualifier {
|
|||
|
||||
fn from_str(input: &str) -> Result<RepoQualifier, RepoValidationError> {
|
||||
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<RepoName, RepoValidationError> {
|
||||
let is_valid = input.chars().all(|c| {
|
||||
c.is_ascii_alphanumeric() || c == '-' || c == '_'
|
||||
c.is_ascii_alphanumeric() || c == '.' || c == '-' || c == '_'
|
||||
});
|
||||
|
||||
if !is_valid {
|
||||
|
|
Loading…
Reference in a new issue