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 c5168b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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
2 changes: 1 addition & 1 deletion man/starts_with.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c5168b4

Please sign in to comment.