If the .env file has a field written as
the parsing to a struct will fail because the struct fields cannot contain whitespaces
Recommend adding a test case here:
Possible Solution:
Change
|
expr = "(?<key>.+?)=(?<value>.*)"; |
to
expr = "(?<key>.+?)\s*=\s*(?<value>.*)";
could also use STRTRIM on the resulting key/value string results instead