Skip to content

Commit

Permalink
#316 missing line_regex inherit from dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Mar 30, 2023
1 parent 6068fa7 commit db7daf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/geoflow_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ dotenv_ignore_empty_lines <- function (lines) {
}
#dotenv_parse_dot_line
dotenv_parse_dot_line <- function (line) {
line_regex = "^\\s*(?<export>export\\s+)?(?<key>[^=]+)=(?<q>['\"]?)(?<value>.*)\\g{q}\\s*$"
match <- regexpr(line_regex, line, perl = TRUE)
if (match == -1)
stop("Cannot parse dot-env line: ", substr(line, 1, 40),
Expand Down

0 comments on commit db7daf0

Please sign in to comment.