Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zricethezav committed Jan 18, 2024
1 parent 4226508 commit 1ee87f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/custom_detectors/direct_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"context"
"fmt"
"net/http"
"regexp"
"strconv"
"strings"

Expand All @@ -22,7 +21,8 @@ type Target struct {
SuccessBodyContains []string
}

var validatorReplaceRegex = regexp.MustCompile(`(?i)\${([a-z0-9\-]{0,})}`)
// Note: could be used to do the replacement rather than using strings
// var validatorReplaceRegex = regexp.MustCompile(`(?i)\${([a-z0-9\-]{0,})}`)

func DirectVerifyTargets(ctx context.Context, c *CustomRegexWebhook, matches []map[string][]string) []Target {
var targets []Target
Expand Down

0 comments on commit 1ee87f4

Please sign in to comment.