MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / peek

Function peek

src/common/markdown-span.ts:23–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 };
22
23 const peek = () => {
24 if (t[i] === '\\' && t[i + 1] !== undefined) {
25 // Escape characters
26 if ('\\`*_{}[]<>()#+-.!|'.includes(t[i + 1])) {
27 i += 1;
28 return t[i];
29 }
30 }
31 return t[i];
32 };
33
34 const consume = () => {
35 const c = peek();

Callers 1

consumeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected