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

Function directiveNormalize

lib/test/angular/1.6.7/angular.js:10811–10817  ·  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

10809 * @param name Name to normalize
10810 */
10811function directiveNormalize(name) {
10812 return name
10813 .replace(PREFIX_REGEXP, '')
10814 .replace(SPECIAL_CHARS_REGEXP, function(_, letter, offset) {
10815 return offset ? letter.toUpperCase() : letter;
10816 });
10817}
10818
10819/**
10820 * @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