(raw)
| 9 | const comment_unknown = (type) => `<!-- Unknown Insertion Type : '${type}' -->`; |
| 10 | |
| 11 | function insert(raw) { |
| 12 | const type = toType(raw); |
| 13 | |
| 14 | return generators[type]?.() ?? comment_unknown(type); |
| 15 | } |
| 16 | |
| 17 | function toType(string) { |
| 18 | return string.trim().substring(1); |
nothing calls this directly
no test coverage detected