(string: string, pos: number)
| 242 | } |
| 243 | |
| 244 | function isBackslashEscaped(string: string, pos: number): boolean { |
| 245 | let escaped = false; |
| 246 | for (let i = pos; i >= 0; i--) { |
| 247 | const char = string[i]; |
| 248 | if (char !== '\\') { |
| 249 | break; |
| 250 | } |
| 251 | |
| 252 | escaped = !escaped; |
| 253 | } |
| 254 | |
| 255 | return escaped; |
| 256 | } |
no outgoing calls
no test coverage detected