(value)
| 99 | } |
| 100 | |
| 101 | function splitFirst(input) { |
| 102 | const match = String(input || "").trim().match(/^(\S+)\s*([\s\S]*)$/) |
| 103 | if (!match) return ["", ""] |
| 104 | return [match[1], (match[2] || "").trim()] |
| 105 | } |
| 106 | |
| 107 | function stripOuterQuotes(value) { |
| 108 | const input = String(value || "").trim() |
| 109 | if ((input.startsWith('"') && input.endsWith('"')) || (input.startsWith("'") && input.endsWith("'"))) { |
| 110 | return input.slice(1, -1) |