From c3e9e368b9c0f820eab956bbccd5fe71afd72b76 Mon Sep 17 00:00:00 2001 From: Ahrav Dutta Date: Sun, 15 Dec 2024 13:57:44 -0800 Subject: [PATCH] fix test --- pkg/detectors/detectors_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/detectors/detectors_test.go b/pkg/detectors/detectors_test.go index 9c6a850e87d3..67c6b053cde3 100644 --- a/pkg/detectors/detectors_test.go +++ b/pkg/detectors/detectors_test.go @@ -16,15 +16,15 @@ func TestPrefixRegex(t *testing.T) { }{ { keywords: []string{"securitytrails"}, - expected: `(?i)(?:securitytrails)(?:.|[\n\r]){0,40}`, + expected: `(?i:securitytrails)(?:.|[\n\r]){0,40}?`, }, { keywords: []string{"zipbooks"}, - expected: `(?i)(?:zipbooks)(?:.|[\n\r]){0,40}`, + expected: `(?i:zipbooks)(?:.|[\n\r]){0,40}?`, }, { keywords: []string{"wrike"}, - expected: `(?i)(?:wrike)(?:.|[\n\r]){0,40}`, + expected: `(?i:wrike)(?:.|[\n\r]){0,40}?`, }, } for _, tt := range tests {