client/annotviz/gulp/util/scriptFilter.js
author rougeronj
Wed, 21 Jan 2015 20:16:31 +0100
changeset 103 123a611c7903
parent 85 eff9460bd4f2
permissions -rw-r--r--
minor update of options and add annotsvizview

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