mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
fix package name check
This commit is contained in:
parent
23bca1e595
commit
34fd7283c8
@ -71,7 +71,7 @@ impl Package {
|
|||||||
// Iterate and check that the package name is valid.
|
// Iterate and check that the package name is valid.
|
||||||
for current in package_name.chars() {
|
for current in package_name.chars() {
|
||||||
// Check that the package name is lowercase.
|
// Check that the package name is lowercase.
|
||||||
if !current.is_ascii_lowercase() && current != '-' {
|
if current.is_ascii_uppercase() && current != '-' {
|
||||||
tracing::error!("Project names must be all lowercase");
|
tracing::error!("Project names must be all lowercase");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user