(str)
| 2176 | } |
| 2177 | |
| 2178 | function getTemplateKeys(str) { |
| 2179 | str = stripWrapQuote(str) |
| 2180 | return [ |
| 2181 | ...[...str.matchAll(/\{\{\{([^{}]+)\}\}\}/g)].map(item => item[1].trim()), |
| 2182 | ...[...str.replace(/\{\{\{[^{}]+\}\}\}/g, '').matchAll(/\{([^{}]+)\}/g)].map(item => item[1].trim()), |
| 2183 | ].filter(Boolean) |
| 2184 | } |
| 2185 | |
| 2186 | function getArgumentDefaultValue(item) { |
| 2187 | const value = `${item?.value ?? ''}`.trim() |
no test coverage detected