client/annotviz/gulp/util/scriptFilter.js
author rougeronj
Thu, 16 Apr 2015 11:09:13 +0200
changeset 151 8468703ef93c
parent 85 eff9460bd4f2
permissions -rw-r--r--
update pianoroll static template on 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));
};