Skip to content

Commit

Permalink
fix str_detect
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Sep 12, 2023
1 parent 3d016d9 commit 23f1e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils-str.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ str_which <- function(string, pattern, ..., fixed = FALSE) {
}

str_detect <- function(string, pattern, ..., fixed = FALSE) {
grepl(pattern = pattern, x = string, ..., perl = !fixed)
grepl(pattern = pattern, x = string, ..., perl = !fixed, fixed = fixed)
}

str_subset <- function(string, pattern, ..., fixed = FALSE) {
Expand Down

0 comments on commit 23f1e36

Please sign in to comment.