Skip to content

Commit

Permalink
bugfix in get_custom_flags where A_flag was counting both A and AE; f…
Browse files Browse the repository at this point in the history
…ixed the regex to only count A.
  • Loading branch information
RobLBaker committed Feb 14, 2024
1 parent 82bdafa commit 3ba9a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/summarize_qc_flags.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ get_custom_flags <- function(directory = here::here(),
# Assessment codes)
A_flag <- suppressWarnings(sum(stringr::str_count(
flags_only[j],
"\\bA"
"\\bA[^E]"
), na.rm = TRUE))
AE_flag <- suppressWarnings(sum(stringr::str_count(
flags_only[j],
Expand Down

0 comments on commit 3ba9a84

Please sign in to comment.