diff --git a/DESCRIPTION b/DESCRIPTION index 4e8b3b14..f01edd70 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: nflfastR Title: Functions to Efficiently Access NFL Play by Play Data -Version: 4.6.1.9014 +Version: 4.6.1.9015 Authors@R: c(person(given = "Sebastian", family = "Carl", diff --git a/R/helper_scrape_nfl.R b/R/helper_scrape_nfl.R index 66d1207c..aaf6a8a0 100644 --- a/R/helper_scrape_nfl.R +++ b/R/helper_scrape_nfl.R @@ -224,7 +224,7 @@ get_pbp_nfl <- function(id, # Data in 2024 pbp introduced separate "plays" for injury updates # These mess up some of our logic. Since they are useless, we remove them here dplyr::filter( - !(is.na(.data$timeout_team) & stringr::str_detect(tolower(.data$play_description), "\\*\\* injury update:")) + !(is.na(.data$timeout_team) & stringr::str_starts(tolower(.data$play_description), "\\*\\* injury update:")) ) %>% fix_posteams()