From f828839b4d414ee18fb6de29532eeec5fe7de3ad Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 8 Aug 2018 02:09:17 -0600 Subject: [PATCH] more obvious bugfixes --- lib/extensions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extensions/index.js b/lib/extensions/index.js index 2293696..47f3629 100644 --- a/lib/extensions/index.js +++ b/lib/extensions/index.js @@ -156,7 +156,7 @@ DB.domains._add = function (acc, opts) { , wildcard: opts.wildcard }; var pdomain; - var parts = name.split('.').map(function (el, i, arr) { + var parts = opts.name.split('.').map(function (el, i, arr) { return arr.slice(i).join('.'); }).reverse(); parts.shift();