(text: string)
| 125 | } |
| 126 | |
| 127 | function unquote(text: string) { |
| 128 | if (text.length < 2) return text |
| 129 | const first = text[0] |
| 130 | const last = text[text.length - 1] |
| 131 | if ((first === '"' || first === "'") && first === last) return text.slice(1, -1) |
| 132 | return text |
| 133 | } |
| 134 | |
| 135 | function home(text: string) { |
| 136 | if (text === "~") return os.homedir() |