Skip to content

Commit

Permalink
export-exchanges .js extension filter fix ccxt#6288
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Dec 19, 2019
1 parent bece526 commit ec40bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/export-exchanges.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ec40bf6

Please sign in to comment.