MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / screamingSnakeCase

Function screamingSnakeCase

javascript/selenium-webdriver/generate_bidi.mjs:1147–1149  ·  view source on GitHub ↗
(camel)

Source from the content-addressed store, hash-verified

1145// ("beforeRequestSent" -> "BEFORE_REQUEST_SENT") and enum constant keys
1146// ("beforeRequestSent" -> "BEFORE_REQUEST_SENT", "strict" -> "STRICT").
1147function 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

Callers 2

enumConstantKeyFunction · 0.85
generateEventDescriptorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected