Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav committed Dec 15, 2024
1 parent 461ad38 commit c3e9e36
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 c3e9e36

Please sign in to comment.