Skip to content

Commit 8fad9d6

Browse files
authored
Fix function type regex (#70)
1 parent d75001f commit 8fad9d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/function_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (r *functionResource) Schema(_ context.Context, _ resource.SchemaRequest, r
100100
Required: true,
101101
Description: "The type of this Function Setting.",
102102
Validators: []validator.String{
103-
stringvalidator.RegexMatches(regexp.MustCompile("^[A-Z]+$"), "'type' must be in all uppercase"),
103+
stringvalidator.RegexMatches(regexp.MustCompile("^[A-Z_]+$"), "'type' must be in all uppercase"),
104104
},
105105
},
106106
"required": schema.BoolAttribute{

0 commit comments

Comments
 (0)