From a0f6d3bcf9a4da325fbc10a6eb1fcbe888962e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 10 Oct 2024 16:48:49 +0200 Subject: [PATCH] *: [0.27] don't exclude resources, if exclude option is empty. (#1679) --- pkg/types/regexp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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("^$") )