From 95129aebebc6f2552a600e443db4a207412f5f5b Mon Sep 17 00:00:00 2001 From: Drahflow Date: Sun, 22 Dec 2013 16:44:15 +0100 Subject: Using typed txt lib --- elymas/lib/net/dns.ey | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elymas/lib/net/dns.ey b/elymas/lib/net/dns.ey index b4a5dbe..11ea73d 100644 --- a/elymas/lib/net/dns.ey +++ b/elymas/lib/net/dns.ey @@ -15,8 +15,7 @@ # 0 -> ascii ip address # 0 <- ipv4 address as un32 { [ -01 "^(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)$" regex not { "not an IPv4 address" die } rep ] - [ -01 txt .consume .|u each ] # FIXME employ typed functions and auto-map - reverse str .fromArray + txt .consume .u reverse str .fromArray } /parseIpv4 deffd # 0 -> hostname -- cgit v1.2.3