(name: string)
| 1081 | } |
| 1082 | |
| 1083 | function 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 | |
| 1090 | function isSecondsDurationPropertyName(propName: string | undefined): boolean { |
| 1091 | return propName !== undefined && /seconds$/i.test(propName); |
no outgoing calls
no test coverage detected
searching dependent graphs…