MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isUrlChar

Function isUrlChar

src/ink/selection.ts:260–264  ·  view source on GitHub ↗
(c: string)

Source from the content-addressed store, hash-verified

258// check below is exact (no wide-char/grapheme drift).
259const URL_BOUNDARY = new Set([...'<>"\'` '])
260function 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

Callers 1

findPlainTextUrlAtFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected