MCPcopy Index your code
hub / github.com/dataease/SQLBot / doBeginMatch

Function doBeginMatch

frontend/public/swagger-ui-bundle.js:20967–20987  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

20965 return 0 === U.matcher.regexIndex ? ((Y += s[0]), 1) : ((ae = !0), 0)
20966 }
20967 function doBeginMatch(s) {
20968 const o = s[0],
20969 i = s.rule,
20970 a = new Response(i),
20971 u = [i.__beforeBegin, i['on:begin']]
20972 for (const i of u) if (i && (i(s, a), a.isMatchIgnored)) return doIgnore(o)
20973 return (
20974 i &&
20975 i.endSameAsBegin &&
20976 (i.endRe = (function escape(s) {
20977 return new RegExp(s.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'), 'm')
20978 })(o)),
20979 i.skip
20980 ? (Y += o)
20981 : (i.excludeBegin && (Y += o),
20982 processBuffer(),
20983 i.returnBegin || i.excludeBegin || (Y = o)),
20984 startNewMode(i),
20985 i.returnBegin ? 0 : o.length
20986 )
20987 }
20988 function doEndMatch(s) {
20989 const i = s[0],
20990 a = o.substr(s.index),

Callers 1

processLexemeFunction · 0.85

Calls 5

doIgnoreFunction · 0.85
processBufferFunction · 0.85
startNewModeFunction · 0.85
replaceMethod · 0.80
iFunction · 0.70

Tested by

no test coverage detected