client/annotviz/gulp/util/scriptFilter.js
author rougeronj
Thu, 22 Jan 2015 11:16:20 +0100
changeset 117 c0034b35c44e
parent 85 eff9460bd4f2
permissions -rw-r--r--
merge + gulp + correction of superposition category-text

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