MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / camelCase

Function camelCase

web/static/bower_components/angular/angular.js:2670–2676  ·  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

2668 * @param name Name to normalize
2669 */
2670function camelCase(name) {
2671 return name.
2672 replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
2673 return offset ? letter.toUpperCase() : letter;
2674 }).
2675 replace(MOZ_HACK_REGEXP, 'Moz$1');
2676}
2677
2678var SINGLE_TAG_REGEXP = /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/;
2679var HTML_REGEXP = /<|&#?\w+;/;

Callers 3

angular.jsFile · 0.85
directiveNormalizeFunction · 0.85
$SceProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected