fix: allow applications to begin with numeric values

This commit is contained in:
Jose Diaz-Gonzalez
2017-12-12 11:12:23 -05:00
committed by GitHub
parent cd9c2d7dbe
commit 39aefb95c2

View File

@@ -330,7 +330,7 @@ func VerifyAppName(appName string) (err error) {
if !DirectoryExists(appRoot) { if !DirectoryExists(appRoot) {
return fmt.Errorf("app %s does not exist: %v", appName, err) 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) { if !r.MatchString(appName) {
return fmt.Errorf("app name (%s) must begin with lowercase alphanumeric character", appName) return fmt.Errorf("app name (%s) must begin with lowercase alphanumeric character", appName)
} }