Skip to content

Commit 259a0e3

Browse files
tobioadcoelho
andauthored
Update internal/kibana/alerting.go
Co-authored-by: Antonio <antoniodcoelho@gmail.com>
1 parent 9e14d80 commit 259a0e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/kibana/alerting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var alertDelayMinSupportedVersion = version.Must(version.NewVersion("8.13.0"))
2626
//
2727
//nolint:staticcheck
2828
func stringIsAlertingDuration() schema.SchemaValidateFunc {
29-
r := regexp.MustCompile(`^[0-9]+(?:\.[0-9]+)?(?:d|h|m|s)$`)
29+
r := regexp.MustCompile(`^[1-9][0-9]*(?:d|h|m|s)$`)
3030
return validation.StringMatch(r, "string is not a valid Alerting duration in seconds (s), minutes (m), hours (h), or days (d)")
3131
}
3232

0 commit comments

Comments
 (0)