(value: string)
| 185 | const trim = (left: string, right: string) => left.trim() === right.trim() |
| 186 | const normalized = (left: string, right: string) => normalize(left.trim()) === normalize(right.trim()) |
| 187 | const normalize = (value: string) => |
| 188 | value |
| 189 | .replace(/[‘’‚‛]/g, "'") |
| 190 | .replace(/[“”„‟]/g, '"') |
| 191 | .replace(/[‐‑‒–—―]/g, "-") |
| 192 | .replace(/…/g, "...") |
| 193 | .replace(/ /g, " ") |
| 194 | const splitBom = (text: string) => |
| 195 | text.startsWith("\uFEFF") ? { bom: true, text: text.slice(1) } : { bom: false, text } |
| 196 | const stripHeredoc = (input: string) => |
no outgoing calls
no test coverage detected