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

Function reverseStatic

third_party/inputmask/inputmask.js:390–393  ·  view source on GitHub ↗
(st)

Source from the content-addressed store, hash-verified

388 }
389 function reverseTokens(maskToken) {
390 function reverseStatic(st) {
391 if (st === opts.optionalmarker[0]) st = opts.optionalmarker[1]; else if (st === opts.optionalmarker[1]) st = opts.optionalmarker[0]; else if (st === opts.groupmarker[0]) st = opts.groupmarker[1]; else if (st === opts.groupmarker[1]) st = opts.groupmarker[0];
392 return st;
393 }
394 maskToken.matches = maskToken.matches.reverse();
395 for (var match in maskToken.matches) {
396 if (maskToken.matches.hasOwnProperty(match)) {

Callers 1

reverseTokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected