diff --git a/pkg/types/regexp.go b/pkg/types/regexp.go index e2b75cf6..63e52182 100644 --- a/pkg/types/regexp.go +++ b/pkg/types/regexp.go @@ -3,6 +3,6 @@ package types import "regexp" var ( - RegExpAny = regexp.MustCompile(".+") - RegExpEmpty = regexp.MustCompile("") + RegExpAny = regexp.MustCompile("^.+$") + RegExpEmpty = regexp.MustCompile("^$") )