Skip to content

Commit

Permalink
fix test (#3780)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav authored Dec 16, 2024
1 parent 461ad38 commit f105aa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/detectors/detectors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f105aa9

Please sign in to comment.