Skip to content

Commit

Permalink
Fix invalid regular expression in "Set Redactor" guide (#44)
Browse files Browse the repository at this point in the history
Co-authored-by: Neal Richardson <[email protected]>
  • Loading branch information
exetico and nealrichardson authored Jul 16, 2024
1 parent 5b381b9 commit 5856ed5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/redactor.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#' @seealso For further details on how to redact responses, see `vignette("redacting", package = "httptest2")`.
#' @examples
#' # Shorten UUIDs in response body/URLs to their first 6 digits:
#' set_redactor(function(resp) gsub_response(resp, "([0-9a-f]{6}[0-9a-f]{26}", "\\1"))
#' set_redactor(function(resp) gsub_response(resp, "([0-9a-f]{6})[0-9a-f]{26}", "\\1"))
#' # Restore the default
#' set_redactor(redact_cookies)
set_redactor <- function(FUN) {
Expand Down
2 changes: 1 addition & 1 deletion man/set_redactor.Rd

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

0 comments on commit 5856ed5

Please sign in to comment.