MCPcopy
hub / github.com/angular-ui/ui-grid / directiveNormalize

Function directiveNormalize

lib/test/angular/1.8.0/angular.js:11534–11540  ·  view source on GitHub ↗

* Converts all accepted directives format into proper directive name. * @param name Name to normalize

(name)

Source from the content-addressed store, hash-verified

11532 * @param name Name to normalize
11533 */
11534function directiveNormalize(name) {
11535 return name
11536 .replace(PREFIX_REGEXP, '')
11537 .replace(SPECIAL_CHARS_REGEXP, function(_, letter, offset) {
11538 return offset ? letter.toUpperCase() : letter;
11539 });
11540}
11541
11542/**
11543 * @ngdoc type

Callers 4

collectDirectivesFunction · 0.70
collectCommentDirectivesFunction · 0.70
applyDirectivesToNodeFunction · 0.70
angular.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected