Browse Source

passes_all

Bob Rudis 3 years ago
parent
commit
366addb6e1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      R/spf.r

+ 1
- 1
R/spf.r View File

@@ -61,7 +61,7 @@ passes_all <- function(spf_rec) {
61 61
   ret <- vector("logical", length(spf_rec))
62 62
   spf_rec <- stringi::stri_trim(stringi::stri_replace_all_regex(spf_rec, '"', ""))
63 63
   SPF <- which(has_spf(spf_rec))
64
-  ret[SPF] <- grepl("\\+all$", stringi::stri_trim(spf_rec[SPF]))
64
+  ret[SPF] <- grepl("[\\+ ]all$", stringi::stri_trim(spf_rec[SPF]))
65 65
   ret[!SPF] <- NA
66 66
   ret
67 67
 }

Loading…
Cancel
Save