(content: string)
| 26 | } |
| 27 | |
| 28 | export function stripBom(content: string): { bom: string; text: string } { |
| 29 | return content.startsWith("\uFEFF") |
| 30 | ? { bom: "\uFEFF", text: content.slice(1) } |
| 31 | : { bom: "", text: content }; |
| 32 | } |
| 33 | |
| 34 | // ---------- fuzzy matching ---------- |
| 35 |