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

Function stripDurationMillisecondsSuffix

scripts/codegen/csharp.ts:225–230  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

223}
224
225function stripDurationMillisecondsSuffix(name: string): string {
226 if (name.length > 2 && name.endsWith("Ms") && /[a-z]/.test(name.charAt(name.length - 3))) {
227 return name.slice(0, -2);
228 }
229 return name;
230}
231
232function toCSharpPropertyName(propName: string, schema: JSONSchema7): string {
233 return toPascalCase(isDurationProperty(schema) ? stripDurationMillisecondsSuffix(propName) : propName);

Callers 1

toCSharpPropertyNameFunction · 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…