MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / camelCase

Function camelCase

OpenReservation/wwwroot/Scripts/angular.js:2708–2713  ·  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

2706 * @param name Name to normalize
2707 */
2708 function camelCase(name) {
2709 return name.replace(SPECIAL_CHARS_REGEXP,
2710 function (_, separator, letter, offset) {
2711 return offset ? letter.toUpperCase() : letter;
2712 }).replace(MOZ_HACK_REGEXP, 'Moz$1');
2713 }
2714
2715 var SINGLE_TAG_REGEXP = /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/;
2716 var 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