(str)
| 2269 | } |
| 2270 | |
| 2271 | function takeLeadingTemplate(str) { |
| 2272 | const matched = `${str ?? ''}`.match(/^(\s*)\{\{\{([^{}]+)\}\}\}\s*(.*)$/) |
| 2273 | return matched ? { key: matched[2].trim(), rest: matched[1] + matched[3] } : null |
| 2274 | } |
| 2275 | |
| 2276 | function getHnValue(item) { |
| 2277 | return typeof item == 'object' && item !== null ? item.value : item |
no outgoing calls
no test coverage detected