From 9837b7ff28574ac1b50b9a5c6944d2b80d203829 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Thu, 30 Mar 2017 21:54:46 +0200 Subject: [PATCH] Allow subdomain param in `now dns` to be a number --- bin/now-dns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/now-dns.js b/bin/now-dns.js index 8fed33a..728f8bc 100755 --- a/bin/now-dns.js +++ b/bin/now-dns.js @@ -208,7 +208,7 @@ function parseAddArgs(args) { } const domain = args[0]; - const name = args[1] === '@' ? '' : args[1]; + const name = args[1] === '@' ? '' : args[1].toString(); const type = args[2]; const value = args[3];