This is an automated email from the ASF dual-hosted git repository. abeizn pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 8f218ba6ed8fed60b1d7b33855b742518b636b38 Author: abeizn <[email protected]> AuthorDate: Wed Jul 20 17:38:00 2022 +0800 fix: purpose camel case and snake case --- generator/cmd/create_migration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/cmd/create_migration.go b/generator/cmd/create_migration.go index c900663d..79977ee7 100644 --- a/generator/cmd/create_migration.go +++ b/generator/cmd/create_migration.go @@ -124,8 +124,8 @@ func purposeNotExistValidate(input string) error { if input == `` { return errors.New("purpose require") } - snakeNameReg := regexp.MustCompile(`^[A-Za-z][A-Za-z0-9]*$`) - if !snakeNameReg.MatchString(input) { + camelNameReg := regexp.MustCompile(`^[A-Za-z][A-Za-z0-9]*$`) + if !camelNameReg.MatchString(input) { return errors.New("purpose invalid (start with a-z and consist with a-z0-9)") }
