MCPcopy Index your code
hub / github.com/coder/code-server / splitOnFirstEquals

Function splitOnFirstEquals

src/node/util.ts:510–513  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

508 * undefined if empty or missing.
509 */
510export function splitOnFirstEquals(str: string): [string, string | undefined] {
511 const split = str.split(/=(.+)?/, 2)
512 return [split[0], split[1]]
513}

Callers 2

getHostFunction · 0.90
parseFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected