From e9ff0dcc66181cd32f997418d144411a449aa233 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 26 Dec 2022 01:49:46 +0800 Subject: [PATCH] types: fix lint issue --- pkg/types/duration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/types/duration.go b/pkg/types/duration.go index c4ff6632f..be3a35a96 100644 --- a/pkg/types/duration.go +++ b/pkg/types/duration.go @@ -10,7 +10,7 @@ import ( "github.com/pkg/errors" ) -var simpleDurationRegExp = regexp.MustCompile("^(\\d+)([hdw])$") +var simpleDurationRegExp = regexp.MustCompile(`^(\d+)([hdw])$`) var ErrNotSimpleDuration = errors.New("the given input is not simple duration format, valid format: [1-9][0-9]*[hdw]")