Skip to content

Commit

Permalink
Correct regex matches
Browse files Browse the repository at this point in the history
  • Loading branch information
wolveix committed Sep 19, 2024
1 parent 3adaff0 commit f600677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/scanner/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const (
var (
BIMIPrefix = DefaultBIMIPrefix
DKIMPrefix = DefaultDKIMPrefix
DMARCPrefix = regexp.MustCompile(`^\s*v\s*=\s*DMARC1`) // Matches v=DMARC1 with whitespace (RFC7489).
SPFPrefix = regexp.MustCompile(`^\s*v\s*=\s*(?i)spf1`)
DMARCPrefix = regexp.MustCompile(`^v\s*=\s*DMARC1`) // Matches v=DMARC1 with whitespace (RFC7489).
SPFPrefix = regexp.MustCompile(`^v=(?i)spf1`)

// knownDkimSelectors is a list of known DKIM selectors.
knownDkimSelectors = []string{
Expand Down

0 comments on commit f600677

Please sign in to comment.