MCPcopy Create free account
hub / github.com/unconed/TermKit / matchAt

Function matchAt

HTML/commandview/command.js:142–150  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

140
141 // Match the multi-regexp on the tokens starting at [index].
142 function matchAt(index) {
143 for (var i = 0; i < n; ++i) {
144 if (!trigger[i].test(tokens[index + i].contents)) {
145 return false;
146 }
147 }
148 match = index;
149 return true;
150 }
151
152 function callback() {
153 trigger.callback.call(command, match, event, tokens);

Callers 1

command.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected