(value)
| 37 | // ───────────────────────────────────────────────────────────────── |
| 38 | |
| 39 | function 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]` |
| 48 | function parseLabel(label) { |