summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-12-11 19:52:12 +0100
committertv <tv@krebsco.de>2018-12-11 19:52:12 +0100
commit9f0cb51c75ad234f275d5959178b68373312d5ed (patch)
tree21d312bf7e08e1679eeb7772e1e71d6669fb72c3 /lib
parent8b08b3528d2828e03d8b8ca2545853934d3cf5be (diff)
lib.krebs.genipv6 hash: 0000 -> 0 instead of ε
Diffstat (limited to 'lib')
-rw-r--r--lib/krebs/genipv6.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/krebs/genipv6.nix b/lib/krebs/genipv6.nix
index 8d5ca16..27df8bf 100644
--- a/lib/krebs/genipv6.nix
+++ b/lib/krebs/genipv6.nix
@@ -36,7 +36,7 @@ let {
suffixLength = addressLength - subnetPrefixLength;
};
- hash = s: head (match "0*(.*)" (substring 0 4 (hashString "sha256" s)));
+ hash = s: head (match "0*(.+)" (substring 0 4 (hashString "sha256" s)));
dropLast = n: xs: reverseList (drop n (reverseList xs));
takeLast = n: xs: reverseList (take n (reverseList xs));