thomasp85 / reqres
Showing 1 of 3 files from the diff.
Other files ignored by Codecov
NAMESPACE has changed.
DESCRIPTION has changed.

@@ -135,7 +135,7 @@
Loading
135 135
#'
136 136
#' @importFrom R6 R6Class
137 137
#' @importFrom assertthat assert_that is.flag has_attr is.error
138 -
#' @importFrom stringi stri_match_first_regex stri_trim_both stri_split_fixed
138 +
#' @importFrom stringi stri_match_first_regex stri_trim_both stri_split_fixed stri_split_regex
139 139
#' @importFrom urltools url_decode
140 140
#' @importFrom brotli brotli_decompress
141 141
#' @importFrom utils modifyList
@@ -436,7 +436,7 @@
Loading
436 436
437 437
    parse_cookies = function() {
438 438
      if (is.null(self$headers$Cookie)) return(list())
439 -
      cookies <- stri_trim_both(stri_split_fixed(self$headers$Cookie, ';')[[1]])
439 +
      cookies <- stri_trim_both(stri_split_regex(self$headers$Cookie, ";(?=\\s*[a-zA-Z0-9!#$%&'()*+-.\\/:<>?@\\[\\]^_`{|}~]{1,})")[[1]])
440 440
      cookies <- unlist(stri_split_fixed(cookies, '=', n = 2))
441 441
      structure(
442 442
        as.list(url_decode(cookies[c(FALSE, TRUE)])),
Files Coverage
R 67.38%
Project Totals (5 files) 67.38%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading