From d150487ede84510106c1b5636dccf414a2425cf9 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 6 Oct 2023 09:41:44 -0700 Subject: [PATCH] split is in bulitins --- zone-to-zonefile.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone-to-zonefile.nix b/zone-to-zonefile.nix index fcd86bc..9e250f5 100644 --- a/zone-to-zonefile.nix +++ b/zone-to-zonefile.nix @@ -5,7 +5,7 @@ with lib; let removeBlankLines = str: - concatStringsSep "\n\n" (filter isString (split '' + concatStringsSep "\n\n" (filter isString (builtins.split '' +'' str)); @@ -28,7 +28,7 @@ let let lines = splitString "\n" zonedata; records = filter isRecord lines; - split-records = map recordMatcher records; + splitRecords = map recordMatcher records; indexStrlen = i: record: stringLength (elemAt record i); recordIndexMaxlen = i: maxInt (map (indexStrlen i) splitRecords); in recordFormatter (recordIndexMaxlen 0) (recordIndexMaxlen 1);