From f93f784d4314f40162967ea1ff3b9f41b3968f0f Mon Sep 17 00:00:00 2001 From: William Harrison Date: Thu, 17 Oct 2024 18:35:11 +0800 Subject: [PATCH] Update dnsconfig.js --- dnsconfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsconfig.js b/dnsconfig.js index ad490b37d..ecc1ea830 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -11,7 +11,7 @@ function getDomainsList(filesPath) { var files = glob.apply(null, [filesPath, true, '.json']); for (var i = 0; i < files.length; i++) { - var name = files[i].split('/').pop(); + var name = files[i].split('/').pop().replace(/\.json$/, ''); result.push({ name: name, data: require(files[i]) }); }