docs(seed): Added Guide for contributing project euler (#16140)

This commit is contained in:
Alvin Kristanto
2017-12-05 13:41:25 +07:00
committed by Quincy Larson
parent 4d2e2b3aac
commit 35f0b4f0d7
2 changed files with 250 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
const fs = require('fs');
const path = require('path');
const hiddenFile = /^(\.|\/\.)/g;
const hiddenFile = /(^(\.|\/\.))|(.md$)/g;
function getFilesFor(dir) {
return fs.readdirSync(path.join(__dirname, '/' + dir))
.filter(file => !hiddenFile.test(file))