From f56f768905ebd3294f4747c3c1345ec92dde0f88 Mon Sep 17 00:00:00 2001 From: Tweak Date: Tue, 22 Nov 2022 19:57:38 -0700 Subject: [PATCH] Update import. --- utils/getJSON.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/utils/getJSON.js b/utils/getJSON.js index 9c3b224..08f971c 100644 --- a/utils/getJSON.js +++ b/utils/getJSON.js @@ -1,8 +1,5 @@ const fs = require('fs'); - -function getFileExtension(filename) { - return (/[.]/.exec(filename)) ? /[^.]+$/.exec(filename) : undefined; -} +const { getFileExtension } = require('./utils.js'); function getJSON(file, filename) { const path = `${process.env.actions_path}/${file}`; // File path.