client/annotviz/gulp/util/scriptFilter.js
author rougeronj
Tue, 20 Jan 2015 12:00:40 +0100
changeset 99 9d968fbcaa2a
parent 85 eff9460bd4f2
permissions -rw-r--r--
Add General Time Line + minor change in annotsRoll

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