MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / check_capture

Function check_capture

deps/lua/src/lstrlib.c:186–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185
186static int check_capture (MatchState *ms, int l) {
187 l -= '1';
188 if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED)
189 return luaL_error(ms->L, "invalid capture index");
190 return l;
191}
192
193
194static int capture_to_close (MatchState *ms) {

Callers 1

match_captureFunction · 0.85

Calls 1

luaL_errorFunction · 0.85

Tested by

no test coverage detected