MCPcopy Index your code
hub / github.com/github/copilot-sdk / fixBrandCasing

Function fixBrandCasing

java/scripts/codegen/java.ts:38–40  ·  view source on GitHub ↗

* Correct the GitHub brand casing in a generated identifier or documentation * string. Schema titles/definition names and value-derived identifiers may * render the brand as "Github"; the correct casing is "GitHub". Lowercase * wire/protocol values (e.g. "github") are left untouched. Idempotent.

(value: string)

Source from the content-addressed store, hash-verified

36 * wire/protocol values (e.g. "github") are left untouched. Idempotent.
37 */
38function fixBrandCasing(value: string): string {
39 return value.replace(/Github/g, "GitHub");
40}
41
42const BRAND_NORMALIZED_STRING_KEYS = new Set(["title", "description", "markdownDescription"]);
43

Callers 5

normalizeBrandCasingNodeFunction · 0.70
fixBrandRefFunction · 0.70
toPascalCaseFunction · 0.70
toJavaClassNameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…