Skip to content

Commit 28e5506

Browse files
authored
scf handler validate change (#1030)
1 parent 61a815a commit 28e5506

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tencentcloud/resource_tc_scf_function.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ func scfFunctionValidate(allowDot bool) schema.SchemaValidateFunc {
8282

8383
for _, r := range runes {
8484
switch {
85-
case unicode.IsLetter(r), unicode.IsNumber(r), r == '-', r == '_', r == '.' && allowDot:
85+
case unicode.IsLetter(r), unicode.IsNumber(r), r == '-', r == '_', r == ':', r == '.' && allowDot:
8686
default:
8787
if !allowDot {
88-
errs = append(errs, errors.Errorf(`invalid %s, %s only can contain a-Z, 0-9, "-" and "_"`, k, k))
88+
errs = append(errs, errors.Errorf(`invalid %s, %s only can contain a-Z, 0-9, "-" , "_" and ":"`, k, k))
8989
} else {
90-
errs = append(errs, errors.Errorf(`invalid %s, %s only can contain a-Z, 0-9, "-", "." and "_"`, k, k))
90+
errs = append(errs, errors.Errorf(`invalid %s, %s only can contain a-Z, 0-9, "-", ".", "_" and ":"`, k, k))
9191
}
9292
return
9393
}

0 commit comments

Comments
 (0)