client/annotviz/gulp/util/scriptFilter.js
author ymh <ymh.work@gmail.com>
Fri, 23 Jan 2015 00:41:35 +0100
changeset 125 f9dd7bfed997
parent 85 eff9460bd4f2
permissions -rw-r--r--
introduce moment.js to correctly show the 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));
};