fix: allow applications to begin with numeric values
This commit is contained in:
committed by
GitHub
parent
cd9c2d7dbe
commit
39aefb95c2
@@ -330,7 +330,7 @@ func VerifyAppName(appName string) (err error) {
|
||||
if !DirectoryExists(appRoot) {
|
||||
return fmt.Errorf("app %s does not exist: %v", appName, err)
|
||||
}
|
||||
r, _ := regexp.Compile("^[a-z].*")
|
||||
r, _ := regexp.Compile("^[a-z0-9].*")
|
||||
if !r.MatchString(appName) {
|
||||
return fmt.Errorf("app name (%s) must begin with lowercase alphanumeric character", appName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user