Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Jul 25, 2024
1 parent 94efde2 commit 19bbc30
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const fullResult = computed<FullResult>(() => {
for (const result of results) {
if (result.startsWith('spf=')) {
const regex = /spf=(?<status>[a-z]+)\s\((?<details>[A-Za-z0-9.:\-@ ]+)\)\ssmtp\.(?<authenticationSource>[A-Za-z]+)=(?<authenticationData>[A-Za-z0-9-.]+)/
const regex = /spf=(?<status>[a-z]+)\s\((?<details>[A-Za-z0-9.:\-@ ]+)\)\ssmtp\.(?<authenticationSource>[A-Za-z]+)=(?<authenticationData>[A-Za-z0-9\-.@]+)/
const match = result.match(regex)
spfResult.status = match?.groups?.status
Expand All @@ -65,7 +65,7 @@ const fullResult = computed<FullResult>(() => {
}
if (result.startsWith('dkim=')) {
const regex = /dkim=(?<status>[a-z]+)\s(\((?<details>[A-Za-z0-9 .]+)\)\s)?header\.(i|d)=(?<headerd>[A-Za-z0-9-.@]+)/
const regex = /dkim=(?<status>[a-z]+)\s(\((?<details>[A-Za-z0-9. ]+)\)\s)?header\.(i|d)=(?<headerd>[A-Za-z0-9\-.@]+)/
const match = result.match(regex)
console.log(result)
Expand Down

0 comments on commit 19bbc30

Please sign in to comment.