(name: string)
| 223 | } |
| 224 | |
| 225 | function 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 | |
| 232 | function toCSharpPropertyName(propName: string, schema: JSONSchema7): string { |
| 233 | return toPascalCase(isDurationProperty(schema) ? stripDurationMillisecondsSuffix(propName) : propName); |
no outgoing calls
no test coverage detected
searching dependent graphs…