client/annotviz/gulp/util/scriptFilter.js
author rougeronj
Fri, 23 Jan 2015 00:43:54 +0100
changeset 128 9f2334598088
parent 85 eff9460bd4f2
permissions -rw-r--r--
add archive variable to desactivate the socket listening for the static timeLines

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