client/annotviz/gulp/util/scriptFilter.js
author rougeronj
Fri, 17 Apr 2015 11:28:31 +0200
changeset 159 f2e4641681f6
parent 85 eff9460bd4f2
permissions -rw-r--r--
Add 'keyword' attribute to new_annot and gulp copy 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));
};