if(typeof(constraints) == 'undefined'){ constraints = {}; } /* // SAMPLE OVERRIDE constraints.match = function(value, params){ console.log('overridden'); var regex = new RegExp(params.shift()); if(typeof(value) == 'string'){ if(regex.test(value)){ return true; } else{ return false; } }else{ return false; } } */