From ec40bf6da340dd8e9e007354c547e473fd0cf8c3 Mon Sep 17 00:00:00 2001 From: Igor Kroitor Date: Thu, 19 Dec 2019 19:52:26 +0300 Subject: [PATCH] export-exchanges .js extension filter fix #6288 --- build/export-exchanges.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/export-exchanges.js b/build/export-exchanges.js index c3bb1fcd9c1f..cee147922c30 100644 --- a/build/export-exchanges.js +++ b/build/export-exchanges.js @@ -45,7 +45,7 @@ function getIncludedExchangeIds () { const isIncluded = (id) => ((includedIds.length === 0) || includedIds.includes (id)) const ids = fs.readdirSync ('./js/') - .filter (file => file.includes ('.js')) + .filter (file => file.match (/[a-zA-Z0-9_-]+.js$/)) .map (file => file.slice (0, -3)) .filter (isIncluded);