From db7daf058dc2821e232a2f321aa1ad83c98f270d Mon Sep 17 00:00:00 2001 From: eblondel Date: Fri, 31 Mar 2023 00:16:24 +0200 Subject: [PATCH] #316 missing line_regex inherit from dotenv --- R/geoflow_utils.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/geoflow_utils.R b/R/geoflow_utils.R index a0f61b4c..d059aa1d 100644 --- a/R/geoflow_utils.R +++ b/R/geoflow_utils.R @@ -506,6 +506,7 @@ dotenv_ignore_empty_lines <- function (lines) { } #dotenv_parse_dot_line dotenv_parse_dot_line <- function (line) { + line_regex = "^\\s*(?export\\s+)?(?[^=]+)=(?['\"]?)(?.*)\\g{q}\\s*$" match <- regexpr(line_regex, line, perl = TRUE) if (match == -1) stop("Cannot parse dot-env line: ", substr(line, 1, 40),