(c: string)
| 258 | // check below is exact (no wide-char/grapheme drift). |
| 259 | const URL_BOUNDARY = new Set([...'<>"\'` ']) |
| 260 | function isUrlChar(c: string): boolean { |
| 261 | if (c.length !== 1) return false |
| 262 | const code = c.charCodeAt(0) |
| 263 | return code >= 0x21 && code <= 0x7e && !URL_BOUNDARY.has(c) |
| 264 | } |
| 265 | |
| 266 | /** |
| 267 | * Scan the screen buffer for a plain-text URL at (col, row). Mirrors the |
no test coverage detected