diff --git a/R/configuration.R b/R/configuration.R index 8bf6e0c4..7d76b89e 100644 --- a/R/configuration.R +++ b/R/configuration.R @@ -160,6 +160,15 @@ #' vcr_configure(dir = tempdir(), #' filter_sensitive_data = list(foo = "", hello = "") #' ) +#' vcr_configure( +#' # Use regex to remove sensitive information (e.g. IP data) from cassettes +#' filter_sensitive_data_regex = list( +#' '"ip": "redacted"' = '"ip": "[0-9.]+"', +#' '"hostname": "redacted"' = '"hostname": "[^"]*"', +#' '"org": "redacted"' = '"org": "[^"]*"' +#' ), +#' dir = tempdir() +#') #' @export vcr_configure <- function(...) {