We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2006ba9 commit 602ceb5Copy full SHA for 602ceb5
1 file changed
src/main/kotlin/com/haulmont/cuba/cli/cubaplugin/project/ProjectInitCommand.kt
@@ -81,7 +81,10 @@ class ProjectInitCommand : GeneratorCommand<ProjectInitModel>() {
81
default { answers ->
82
val notAlphaNumeric = Regex("[^a-zA-Z0-9]")
83
84
- notAlphaNumeric.replace(answers["projectName"] as String, "").toLowerCase()
+ notAlphaNumeric
85
+ .replace(answers["projectName"] as String, "")
86
+ .replace("^[0-9]+".toRegex(), "")
87
+ .toLowerCase()
88
}
89
90
validate {
0 commit comments