ember-legacy-class-transform
Version:
The default blueprint for ember-cli addons.
15 lines (13 loc) • 345 B
JavaScript
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 + '`');
}
});
};