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

Function stripDurationMillisecondsSuffix

scripts/codegen/python.ts:1083–1088  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1081}
1082
1083function stripDurationMillisecondsSuffix(name: string): string {
1084 if (name.length > 2 && name.endsWith("Ms") && /[a-z]/.test(name.charAt(name.length - 3))) {
1085 return name.slice(0, -2);
1086 }
1087 return name;
1088}
1089
1090function isSecondsDurationPropertyName(propName: string | undefined): boolean {
1091 return propName !== undefined && /seconds$/i.test(propName);

Callers 1

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