Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
510
export
function
splitOnFirstEquals(str: string): [string, string | undefined] {
511
const
split = str.split(/=(.+)?/, 2)
512
return
[split[0], split[1]]
513
}
Callers
2
getHost
Function · 0.90
parse
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected