client/annotviz/gulp/util/scriptFilter.js
author ymh <ymh.work@gmail.com>
Mon, 19 Jan 2015 15:55:17 +0100
changeset 96 f58715468f1e
parent 85 eff9460bd4f2
permissions -rw-r--r--
Merged revison 95

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