Skip to content

Commit

Permalink
replace stringr::str_detect() by grepl()
Browse files Browse the repository at this point in the history
  • Loading branch information
Karim-Mane committed Apr 18, 2024
1 parent 6b6cbaa commit 0473995
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ Imports:
readr,
rlang,
snakecase,
stringr,
utils
Suggests:
kableExtra,
Expand Down
2 changes: 1 addition & 1 deletion R/date_standardization_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ date_detect_separator <- function(x) {
if (!is.na(x)) {
sep <- NULL
for (spec_char in special_characters) {
if (stringr::str_detect(x, spec_char)) {
if (grepl(pattern = spec_char, x)) {
sep <- c(sep, spec_char)
}
}
Expand Down

0 comments on commit 0473995

Please sign in to comment.