(camel)
| 1145 | // ("beforeRequestSent" -> "BEFORE_REQUEST_SENT") and enum constant keys |
| 1146 | // ("beforeRequestSent" -> "BEFORE_REQUEST_SENT", "strict" -> "STRICT"). |
| 1147 | function screamingSnakeCase(camel) { |
| 1148 | return camel.replace(/([a-z0-9])([A-Z])/g, '$1_$2').toUpperCase() |
| 1149 | } |
| 1150 | |
| 1151 | // The un-prefixed local segment of a dotted schema name, PascalCased — |
| 1152 | // 'network.InterceptPhase' -> 'InterceptPhase'. Used for a static enum constant's |
no outgoing calls
no test coverage detected