From da0b40457080a5d70464e80cd526c61b74dc511f Mon Sep 17 00:00:00 2001 From: Jonas Kwiedor Date: Mon, 26 Dec 2022 19:04:41 +0100 Subject: [PATCH] fix: Add lazy to regular expression. --- import.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import.go b/import.go index 24f0c42..cbc45ed 100644 --- a/import.go +++ b/import.go @@ -18,7 +18,7 @@ type data struct { } // regex is to save the compiled expression. -var regex = regexp.MustCompile(`(?m)(?P\w+)=["']?(?P.*)(?:["']|\b)$`) +var regex = regexp.MustCompile(`(?m)(?P\w+?)=["']?(?P.*?)(?:["']|\b)$`) // Import is read the environment variable file and use regex to find // all sub matches. After that we initialize the environment variables to local.