MCPcopy Create free account
hub / github.com/ampproject/amphtml / positionCanMatchDefinition

Function positionCanMatchDefinition

third_party/inputmask/inputmask.js:838–847  ·  view source on GitHub ↗
(pos, def)

Source from the content-addressed store, hash-verified

836 return (tests || getTests(pos))[0];
837 }
838 function positionCanMatchDefinition(pos, def) {
839 var valid = false, tests = getTests(pos);
840 for (var tndx = 0; tndx < tests.length; tndx++) {
841 if (tests[tndx].match && tests[tndx].match.def === def) {
842 valid = true;
843 break;
844 }
845 }
846 return valid;
847 }
848 function getTests(pos, ndxIntlzr, tstPs) {
849 var maskTokens = getMaskSet().maskToken, testPos = ndxIntlzr ? tstPs : 0, ndxInitializer = ndxIntlzr ? ndxIntlzr.slice() : [ 0 ], matches = [], insertStop = false, latestMatch, cacheDependency = ndxIntlzr ? ndxIntlzr.join("") : "";
850 function resolveTestFromToken(maskToken, ndxInitializer, loopNdx, quantifierRecurse) {

Callers 1

revalidateMaskFunction · 0.85

Calls 1

getTestsFunction · 0.85

Tested by

no test coverage detected