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

Function toSnakeCase

scripts/codegen/python.ts:1076–1081  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

1074
1075
1076function toSnakeCase(s: string): string {
1077 return s
1078 .replace(/([a-z])([A-Z])/g, "$1_$2")
1079 .replace(/[._]/g, "_")
1080 .toLowerCase();
1081}
1082
1083function stripDurationMillisecondsSuffix(name: string): string {
1084 if (name.length > 2 && name.endsWith("Ms") && /[a-z]/.test(name.charAt(name.length - 3))) {

Callers 10

toPyFieldNameFunction · 0.70
generateRpcFunction · 0.70
emitPyApiGroupFunction · 0.70
emitRpcWrapperFunction · 0.70
emitMethodFunction · 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…