krebs types.addr4: check type harder
This commit is contained in:
parent
0dc2a751a9
commit
4e99bb9d12
@ -220,7 +220,7 @@ types // rec {
|
|||||||
check = let
|
check = let
|
||||||
IPv4address = let d = "([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])"; in
|
IPv4address = let d = "([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])"; in
|
||||||
concatMapStringsSep "." (const d) (range 1 4);
|
concatMapStringsSep "." (const d) (range 1 4);
|
||||||
in x: match IPv4address != null;
|
in x: match IPv4address x != null;
|
||||||
merge = mergeOneOption;
|
merge = mergeOneOption;
|
||||||
};
|
};
|
||||||
addr6 = str; # TODO
|
addr6 = str; # TODO
|
||||||
|
Loading…
Reference in New Issue
Block a user