MCPcopy Create free account
hub / github.com/angular-ui/ui-router / camelCase

Function camelCase

test/angular/1.3/angular.js:2426–2432  ·  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

2424 * @param name Name to normalize
2425 */
2426function camelCase(name) {
2427 return name.
2428 replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
2429 return offset ? letter.toUpperCase() : letter;
2430 }).
2431 replace(MOZ_HACK_REGEXP, 'Moz$1');
2432}
2433
2434var SINGLE_TAG_REGEXP = /^<(\w+)\s*\/?>(?:<\/\1>|)$/;
2435var HTML_REGEXP = /<|&#?\w+;/;

Callers 3

angular.jsFile · 0.70
directiveNormalizeFunction · 0.70
$SceProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected