client/annotviz/gulp/util/scriptFilter.js
author rougeronj
Mon, 19 Jan 2015 09:52:52 +0100
changeset 92 a323578ea954
parent 85 eff9460bd4f2
permissions -rw-r--r--
generalview take interval in pixel as argument (not time anymore)

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