MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / getMatch

Function getMatch

src/lib/libtime.js:367–375  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

365 var value;
366
367 var getMatch = (symbol) => {
368 var pos = capture.indexOf(symbol);
369 // check if symbol appears in regexp
370 if (pos >= 0) {
371 // return matched value or null (falsy!) for non-matches
372 return matches[pos+1];
373 }
374 return;
375 };
376
377 // seconds
378 if ((value=getMatch('S'))) {

Callers 1

libtime.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected