Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
40
function
oneLine(value: string): string {
41
return
value.replace(/\\/g,
'\\\\'
).replace(/\r/g,
'\\r'
).replace(/\n/g,
'\\n'
)
42
}
43
44
function
states(map: Record<string, StateValue>): string {
45
let
out =
''
Callers
1
line
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected