Skip to content

Commit

Permalink
Fix logpush job name validation regex
Browse files Browse the repository at this point in the history
Should be `^[a-zA-Z0-9.-]*$` instead of `^[a-zA-Z0-9.-]+$`.
  • Loading branch information
ChristophShyper committed Jun 30, 2022
1 parent 82bff15 commit 77fae02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/schema_cloudflare_logpush_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func resourceCloudflareLogpushJobSchema() map[string]*schema.Schema {
"name": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-zA-Z0-9.-]+$`), "must contain only alphanumeric characters, hyphens, and periods"),
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^[a-zA-Z0-9.-]*$`), "must contain only alphanumeric characters, hyphens, and periods"),
Description: "The name of the logpush job to create.",
},
"dataset": {
Expand Down

0 comments on commit 77fae02

Please sign in to comment.