diff --git a/parse-git-config.nix b/parse-git-config.nix index b98e6d1..c9a0c49 100644 --- a/parse-git-config.nix +++ b/parse-git-config.nix @@ -18,7 +18,7 @@ # { lib ? import , ... }: let - inherit (lib.strings) splitString hasPrefix removePrefix removeSuffix hasInfix replaceStrings; + inherit (lib.strings) splitString hasPrefix removePrefix removeSuffix replaceStrings; inherit (lib.lists) foldl' head tail; parseIniText = text: @@ -33,7 +33,7 @@ let then r // { section = removePrefix "[" (removeSuffix "]" line); } - else if hasInfix "=" line then + else if builtins.match ".*=.*" line != null then let s = splitString "=" line; s0 = head s;