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

Function isMask

third_party/inputmask/inputmask.js:1511–1522  ·  view source on GitHub ↗
(pos, strict)

Source from the content-addressed store, hash-verified

1509 return true;
1510 }
1511 function isMask(pos, strict) {
1512 var test = getTestTemplate(pos).match;
1513 if (test.def === "") test = getTest(pos).match;
1514 if (test.fn != null) {
1515 return test.fn;
1516 }
1517 if (strict !== true && pos > -1) {
1518 var tests = getTests(pos);
1519 return tests.length > 1 + (tests[tests.length - 1].match.def === "" ? 1 : 0);
1520 }
1521 return false;
1522 }
1523 function seekNext(pos, newBlock) {
1524 var position = pos + 1;
1525 while (getTest(position).match.def !== "" && (newBlock === true && (getTest(position).match.newBlockMarker !== true || !isMask(position)) || newBlock !== true && !isMask(position))) {

Callers 9

isValidFunction · 0.85
trackbackPositionsFunction · 0.85
revalidateMaskFunction · 0.85
seekNextFunction · 0.85
seekPreviousFunction · 0.85
maskScopeFunction · 0.85
isTemplateMatchFunction · 0.85
checkValFunction · 0.85
handleRemoveFunction · 0.85

Calls 3

getTestTemplateFunction · 0.85
getTestFunction · 0.85
getTestsFunction · 0.85

Tested by

no test coverage detected