Showing 3 of 3 total issues
Function compile
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function compile(mask, options) {
var narrow
, translators
;
if (typeof mask !== "string") return;
Avoid deeply nested control flow statements. Open
Open
if ( resetPos == -1) {
resetPos = i;
} else if (i == lastMaskChar) {
i = resetPos - offset;
}
Avoid deeply nested control flow statements. Open
Open
if (lastMaskChar == resetPos) i -= offset;