(altArr1, altArr2, na)
| 1199 | return elem; |
| 1200 | } |
| 1201 | function checkAlternationMatch(altArr1, altArr2, na) { |
| 1202 | var altArrC = opts.greedy ? altArr2 : altArr2.slice(0, 1), isMatch = false, naArr = na !== undefined ? na.split(",") : [], naNdx; |
| 1203 | for (var i = 0; i < naArr.length; i++) { |
| 1204 | if ((naNdx = altArr1.indexOf(naArr[i])) !== -1) { |
| 1205 | altArr1.splice(naNdx, 1); |
| 1206 | } |
| 1207 | } |
| 1208 | for (var alndx = 0; alndx < altArr1.length; alndx++) { |
| 1209 | if ($.inArray(altArr1[alndx], altArrC) !== -1) { |
| 1210 | isMatch = true; |
| 1211 | break; |
| 1212 | } |
| 1213 | } |
| 1214 | return isMatch; |
| 1215 | } |
| 1216 | function alternate(pos, c, strict, fromSetValid, rAltPos) { |
| 1217 | var validPsClone = $.extend(true, {}, getMaskSet().validPositions), lastAlt, alternation, isValidRslt = false, altPos, prevAltPos, i, validPos, decisionPos, lAltPos = rAltPos !== undefined ? rAltPos : getLastValidPosition(); |
| 1218 | if (lAltPos === -1 && rAltPos === undefined) { |
no outgoing calls
no test coverage detected