Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
eatIf
Function · 0.85
eatQuantMod
Function · 0.85
parseCharClass
Function · 0.85
parseGroup
Function · 0.85
applyQuantifier
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected