MCPcopy Create free account
hub / github.com/dwachss/bililiteRange / parseCommandWord

Function parseCommandWord

bililiteRange.ex.js:196–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 }
195
196 function parseCommandWord(){
197 if (/^\s*$/.test(command)) return 'print'; // blank line just goes to the addressed line, which is what we do with print
198 var ret;
199 command = command.replace(idRE, function (match, c){
200 ret = c;
201 return '';
202 });
203 if (!ret) throw new Error("No command string");
204 return ret;
205 }
206 function parseVariant(){
207 var variant = false;
208 command = command.replace(/^\s*!/, function (){

Callers 1

parseCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected