MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / splitORef

Function splitORef

frontend/app/store/wos.ts:25–31  ·  view source on GitHub ↗
(oref: string)

Source from the content-addressed store, hash-verified

23};
24
25function splitORef(oref: string): [string, string] {
26 const parts = oref.split(":");
27 if (parts.length != 2) {
28 throw new Error("invalid oref");
29 }
30 return [parts[0], parts[1]];
31}
32
33function isBlank(str: string): boolean {
34 return str == null || str == "";

Callers 2

createWaveValueObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected