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);