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

Function oneLine

javascript/atoms/typescript/testing/accessibility-text.ts:40–42  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

38}
39
40function oneLine(value: string): string {
41 return value.replace(/\\/g, '\\\\').replace(/\r/g, '\\r').replace(/\n/g, '\\n')
42}
43
44function states(map: Record<string, StateValue>): string {
45 let out = ''

Callers 1

lineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected