client/annotviz/gulp/util/scriptFilter.js
author rougeronj
Thu, 22 Jan 2015 16:16:54 +0100
changeset 123 d8ef840eaf68
parent 85 eff9460bd4f2
permissions -rw-r--r--
get the correct json category depending on the timestamp

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