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

Function munch

Node/shell/meta.js:265–283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263 work = string;
264
265 function munch() {
266 stack = stack.join('');
267
268 var match;
269 if (match = /([^=]+)=(.+)/(stack)) {
270 params[match[1]] = match[2];
271 }
272 else if (stack.length) {
273 if (value) {
274 value += stack;
275 }
276 else {
277 value = stack;
278 }
279 }
280
281 key = null;
282 stack = [];
283 }
284
285 while (work.length) {
286 // Find RFC 822 token types.

Callers 1

meta.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected