client/annotviz/gulp/util/scriptFilter.js
author rougeronj
Tue, 14 Apr 2015 11:30:51 +0200
changeset 148 21634b2d7609
parent 85 eff9460bd4f2
permissions -rw-r--r--
'gulp server' to copy the js to the server

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