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

Function directiveNormalize

test/angular/1.6/angular.js:10882–10888  ·  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

10880 * @param name Name to normalize
10881 */
10882function directiveNormalize(name) {
10883 return name
10884 .replace(PREFIX_REGEXP, '')
10885 .replace(SPECIAL_CHARS_REGEXP, function(_, letter, offset) {
10886 return offset ? letter.toUpperCase() : letter;
10887 });
10888}
10889
10890/**
10891 * @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