(text: string, placeholders: string[])
| 40 | } |
| 41 | |
| 42 | function restore(text: string, placeholders: string[]): string { |
| 43 | return text.replace( |
| 44 | new RegExp(`${PLACEHOLDER_START}(\\d+)${PLACEHOLDER_END}`, "g"), |
| 45 | (_, index: string) => placeholders[Number(index)] ?? "", |
| 46 | ); |
| 47 | } |
| 48 | |
| 49 | function formatSlackInline(text: string): string { |
| 50 | let formatted = text; |
no outgoing calls
no test coverage detected