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

Function eatQuantMod

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

Source from the content-addressed store, hash-verified

101
102 // 量词修饰:懒惰/占有 '?','+' —— 在 glob 中等价,统一忽略
103 function eatQuantMod(): void {
104 if (peek() === "?" || peek() === "+") next();
105 }
106
107 // Interface for parsed unit
108 // 单元接口

Callers 3

parseBracesQuantFunction · 0.85
analyzeSimpleSequenceFunction · 0.85
applyQuantifierFunction · 0.85

Calls 2

peekFunction · 0.85
nextFunction · 0.85

Tested by

no test coverage detected