MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / peek

Function peek

src/pkg/utils/regex_to_glob.ts:85–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84 // Look ahead / 取当前字符(不前进)
85 function peek(): string {
86 return reStr[i] || "";
87 }
88 // Consume current char / 取当前字符并前进
89 function next(): string {
90 return reStr[i++] || "";

Callers 5

eatIfFunction · 0.85
eatQuantModFunction · 0.85
parseCharClassFunction · 0.85
parseGroupFunction · 0.85
applyQuantifierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected