Skip to content

Commit

Permalink
Use perl = TRUE by default
Browse files Browse the repository at this point in the history
Closes #330
  • Loading branch information
lionel- committed Oct 25, 2024
1 parent b16c333 commit 0beeca4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# tidyselect (development version)


* `matches()` now uses `perl = TRUE` by default. This makes it more consitent with regular expressions in stringr (#330).

* `eval_select()` and `eval_relocate()` gain a new `error_arg` argument that can be specified to throw a better error message when `allow_empty = FALSE` or `allow_rename = FALSE` (@olivroy, #327).

* `vars_pull()` now also warns when using `.data` (#335). Please
Expand Down
2 changes: 1 addition & 1 deletion R/helpers-pattern.R
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ contains <- function(match,
#' @export
matches <- function(match,
ignore.case = TRUE,
perl = FALSE,
perl = TRUE,
vars = NULL) {
check_match(match)
vars <- vars %||% peek_vars(fn = "matches")
Expand Down

0 comments on commit 0beeca4

Please sign in to comment.