Skip to content

Commit

Permalink
Remove extra space
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed May 19, 2024
1 parent 90222bb commit 04067b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/package.R
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ read_meta <- function(path, check_path = TRUE, call = caller_env()) {
# (<<path>>) Parser error: <<parsing error>>
yaml_err <- conditionMessage(e)
# extract parsing error from original error (i.e. remove the path)
parsing_error <- sub("[^\\)]+\\)", "", yaml_err)
parsing_error <- sub("[^\\)]+\\)\\s", "", yaml_err)
# Extract path from original error
path_yaml <- regmatches(yaml_err, m = regexpr("\\(([^\\)]+)\\)", yaml_err))
path_yaml <- gsub("\\(([^\\)]+)\\)", "\\1", path_yaml)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/package.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
Condition
Error:
x Could not parse the config file.
! Parser error: while parsing a block mapping at line 1, column 1 did not find expected key at line 9, column 3
! Parser error: while parsing a block mapping at line 1, column 1 did not find expected key at line 9, column 3
i Edit 'assets/bad-yaml/_pkgdown.yml' to fix the problem.

0 comments on commit 04067b9

Please sign in to comment.