client/annotviz/gulp/util/scriptFilter.js
author rougeronj
Thu, 22 Jan 2015 10:30:36 +0100
changeset 114 9fcb0e0991ed
parent 85 eff9460bd4f2
permissions -rw-r--r--
Add 1 hour to annot timsetamp to catch up the current time

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