From 454510263db627c3b9b6b3386fd1d5694fa2edad Mon Sep 17 00:00:00 2001 From: hellertang Date: Fri, 6 May 2022 20:35:29 +0800 Subject: [PATCH] scf handler validate change --- tencentcloud/resource_tc_scf_function.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tencentcloud/resource_tc_scf_function.go b/tencentcloud/resource_tc_scf_function.go index 119781399a..a3dfdd0702 100644 --- a/tencentcloud/resource_tc_scf_function.go +++ b/tencentcloud/resource_tc_scf_function.go @@ -82,12 +82,12 @@ func scfFunctionValidate(allowDot bool) schema.SchemaValidateFunc { for _, r := range runes { switch { - case unicode.IsLetter(r), unicode.IsNumber(r), r == '-', r == '_', r == '.' && allowDot: + case unicode.IsLetter(r), unicode.IsNumber(r), r == '-', r == '_', r == ':', r == '.' && allowDot: default: if !allowDot { - errs = append(errs, errors.Errorf(`invalid %s, %s only can contain a-Z, 0-9, "-" and "_"`, k, k)) + errs = append(errs, errors.Errorf(`invalid %s, %s only can contain a-Z, 0-9, "-" , "_" and ":"`, k, k)) } else { - errs = append(errs, errors.Errorf(`invalid %s, %s only can contain a-Z, 0-9, "-", "." and "_"`, k, k)) + errs = append(errs, errors.Errorf(`invalid %s, %s only can contain a-Z, 0-9, "-", ".", "_" and ":"`, k, k)) } return }