match -> builtins.match;

This commit is contained in:
niten 2023-10-06 10:37:44 -07:00
parent 7169a05ac3
commit 3f8d326961
1 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ let
maxInt = foldr (a: b: if (a < b) then b else a) 0;
recordMatcher = match "^([^;].*) IN ([A-Z][A-Z0-9]*) (.+)$";
recordMatcher = builtins.match "^([^;].*) IN ([A-Z][A-Z0-9]*) (.+)$";
isRecord = str: (recordMatcher str) != null;
@ -57,9 +57,9 @@ let
isNotNull = o: !isNull o;
hostToFqdn = host:
if isNotNull (match ".+.$" host) then
if isNotNull (builtins.match ".+.$" host) then
host
else if isNotNull (match ".+..+$" host) then
else if isNotNull (builtins.match ".+..+$" host) then
"${host}."
else if (hasAttr host zone.hosts) then
"${host}.${domain}."