* 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)
| 36 | * wire/protocol values (e.g. "github") are left untouched. Idempotent. |
| 37 | */ |
| 38 | function fixBrandCasing(value: string): string { |
| 39 | return value.replace(/Github/g, "GitHub"); |
| 40 | } |
| 41 | |
| 42 | const BRAND_NORMALIZED_STRING_KEYS = new Set(["title", "description", "markdownDescription"]); |
| 43 |
no outgoing calls
no test coverage detected
searching dependent graphs…