MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / unquote

Function unquote

lib/aria.js:39–45  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

37// ─────────────────────────────────────────────────────────────────
38
39function unquote(value) {
40 const v = value.trim()
41 if ((v.startsWith('"') && v.endsWith('"')) || (v.startsWith("'") && v.endsWith("'"))) {
42 return v.slice(1, -1)
43 }
44 return v
45}
46
47// Parse one YAML node label like: `button "Save"`, `textbox "Email" [focused]`, `heading "Title" [level=2]`
48function parseLabel(label) {

Callers 1

parseLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected