UNPKG

ember-legacy-class-transform

Version:
15 lines (13 loc) 345 B
var IS_GLOB = /[\{\}\*\[\]]/; /** * Ensures the provided list of files does not contain any glob expressions. * * @private */ module.exports = function ensureNoGlob(listName, list) { (list || []).forEach(function(a) { if (IS_GLOB.test(a)) { throw new TypeError(listName + ' cannot contain a glob, `' + a + '`'); } }); };