ember-cli-ajh
Version:
Command line tool for developing ambitious ember.js apps
13 lines (10 loc) • 411 B
JavaScript
;
var SilentError = require('silent-error');
module.exports = function(entityName) {
if(! /\-/.test(entityName)) {
throw new SilentError('You specified "' + entityName + '", but in order to prevent ' +
'clashes with current or future HTML element names, you must include ' +
'a hyphen in the component name.');
}
return entityName;
};