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

Function screamingSnakeCase

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

Source from the content-addressed store, hash-verified

1075// ("beforeRequestSent" -> "BEFORE_REQUEST_SENT") and enum constant keys
1076// ("beforeRequestSent" -> "BEFORE_REQUEST_SENT", "strict" -> "STRICT").
1077function screamingSnakeCase(camel) {
1078 return camel.replace(/([a-z0-9])([A-Z])/g, '$1_$2').toUpperCase()
1079}
1080
1081// The un-prefixed local segment of a dotted schema name, PascalCased —
1082// '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