commit 488fe0825c891f7b905bc7f1ca32c356d82f57cd
parent 7f8f22631bf4bce4f18d0366559044256f9d7db5
Author: Jacob R. Edwards <n/a>
Date: Mon, 14 Feb 2022 17:17:43 -0800
Add support for the us ccTLD in netname
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/local/bin/bin/netname b/local/bin/bin/netname
@@ -5,7 +5,7 @@
# Don't abuse. If you do I'm not responsable. (Isn't this obvious?)
#
# Supported TLDs:
-tlds = (xyz org net com)
+tlds = (xyz org net com us)
if (! ~ $#* 0) {
for (a in $*) {
@@ -68,6 +68,11 @@ fn com {
net
}
+fn us {
+ ? notfound '^No Data Found$'
+ def
+}
+
while (name = `{ read }) {
if (~ $name *.* '') {
echo 'Invalid name' >[1=2]