MCPcopy Index your code
hub / github.com/angular-ui/ui-router / directiveNormalize

Function directiveNormalize

test/angular/1.7/angular.js:11469–11475  ·  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

11467 * @param name Name to normalize
11468 */
11469function directiveNormalize(name) {
11470 return name
11471 .replace(PREFIX_REGEXP, '')
11472 .replace(SPECIAL_CHARS_REGEXP, function(_, letter, offset) {
11473 return offset ? letter.toUpperCase() : letter;
11474 });
11475}
11476
11477/**
11478 * @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