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

Function directiveNormalize

lib/test/angular/1.7.0/angular.js:10900–10906  ·  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

10898 * @param name Name to normalize
10899 */
10900function directiveNormalize(name) {
10901 return name
10902 .replace(PREFIX_REGEXP, '')
10903 .replace(SPECIAL_CHARS_REGEXP, function(_, letter, offset) {
10904 return offset ? letter.toUpperCase() : letter;
10905 });
10906}
10907
10908/**
10909 * @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