Skip to content

Commit

Permalink
datasync/task: regexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Sep 8, 2023
1 parent ae79440 commit cc8906a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/datasync/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func ResourceTask() *schema.Resource {
Required: true,
ValidateFunc: validation.All(
validation.StringLenBetween(1, 256),
validation.StringMatch(regexache.MustCompile(`^[0-9A-Za-z_ *?,|^\/#\s()+-]*$`),
validation.StringMatch(regexache.MustCompile(`^[0-9A-Za-z_\s #()*+,/?^|-]*$`),
"Schedule expressions must have the following syntax: rate(<number>\\\\s?(minutes?|hours?|days?)), cron(<cron_expression>) or at(yyyy-MM-dd'T'HH:mm:ss)."),
),
},
Expand Down

0 comments on commit cc8906a

Please sign in to comment.