MCPcopy
hub / github.com/ampproject/amphtml / groupQuantifier

Function groupQuantifier

third_party/inputmask/inputmask.js:526–532  ·  view source on GitHub ↗
(matches)

Source from the content-addressed store, hash-verified

524
525 case opts.alternatormarker:
526 function groupQuantifier(matches) {
527 var lastMatch = matches.pop();
528 if (lastMatch.isQuantifier) {
529 lastMatch = groupify([ matches.pop(), lastMatch ]);
530 }
531 return lastMatch;
532 }
533 if (openenings.length > 0) {
534 currentOpeningToken = openenings[openenings.length - 1];
535 var subToken = currentOpeningToken.matches[currentOpeningToken.matches.length - 1];

Callers 1

factoryFunction · 0.85

Calls 2

groupifyFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected