Blame view

frontend/web/js/validation/src/additional/ziprange.js 200 Bytes
18b850c7   Administrator   Importers CRUD
1
2
3
  $.validator.addMethod("ziprange", function(value, element) {
  	return this.optional(element) || /^90[2-5]\d\{2\}-\d{4}$/.test(value);
  }, "Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx");