Skip to content

Commit

Permalink
Fix bug domainaware#145
Browse files Browse the repository at this point in the history
Regex was too wide and was catching if the domain starts with `all`.
  • Loading branch information
ricco386 authored Aug 14, 2024
1 parent 4ec20ee commit 2690627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkdmarc/spf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
r"([+\-~?])?(mx|ip4|ip6|exists|include|all|a|redirect|exp|ptr)"
r"[:]?([\w+/_.:\-{%}]*)"
)
AFTER_ALL_REGEX_STRING = r"\ball\s*[^\s]+"
AFTER_ALL_REGEX_STRING = r"\ball\s[^\s]+"

SPF_MECHANISM_REGEX = re.compile(SPF_MECHANISM_REGEX_STRING, re.IGNORECASE)
AFTER_ALL_REGEX = re.compile(AFTER_ALL_REGEX_STRING, re.IGNORECASE)
Expand Down

0 comments on commit 2690627

Please sign in to comment.