client/annotviz/gulp/util/scriptFilter.js
author ymh <ymh.work@gmail.com>
Thu, 22 Jan 2015 11:01:26 +0100
changeset 116 61d4a6610ba4
parent 85 eff9460bd4f2
permissions -rw-r--r--
change category by keyword

var path = require('path');

// Filters out non .js files. Prevents
// accidental inclusion of possible hidden files
module.exports = function(name) {
    return /(\.(js)$)/i.test(path.extname(name));
};