MCPcopy Create free account
hub / github.com/apache/cloudstack / camelCase

Function camelCase

tools/ngui/static/js/lib/angular.js:1529–1535  ·  view source on GitHub ↗

* Converts snake_case to camelCase. * Also there is special case for Moz prefix starting with upper case letter. * @param name Name to normalize

(name)

Source from the content-addressed store, hash-verified

1527 * @param name Name to normalize
1528 */
1529function camelCase(name) {
1530 return name.
1531 replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
1532 return offset ? letter.toUpperCase() : letter;
1533 }).
1534 replace(MOZ_HACK_REGEXP, 'Moz$1');
1535}
1536
1537/////////////////////////////////////////////
1538// jQuery mutation patch

Callers 2

angular.jsFile · 0.85
directiveNormalizeFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected