Skip to content

Commit

Permalink
Merge pull request #1040 from Atry/patch-5
Browse files Browse the repository at this point in the history
Support dotenv comments
  • Loading branch information
domenkozar authored Mar 23, 2024
2 parents 49dad4c + 1dd49ec commit 59f9b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/integrations/dotenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let

parseLine = line:
let
parts = builtins.match "(.+) *= *(.+)" line;
parts = builtins.match "([^[:space:]=#]+)[[:space:]]*=[[:space:]]*(.*)" line;
in
if (!builtins.isNull parts) && (builtins.length parts) == 2 then
{ name = builtins.elemAt parts 0; value = builtins.elemAt parts 1; }
Expand Down

0 comments on commit 59f9b87

Please sign in to comment.