Bug Tracker

Opened 7 years ago

Closed 6 years ago

Last modified 4 years ago

#4490 closed enhancement (invalid)

[validate] Please add IP validation to Jquery validate plugin

Reported by: aerobson@… Owned by: joern
Priority: trivial Milestone: 1.4
Component: plugin Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Description

I would like to add IP validation to the Jquery validate plugin. Here is the heart of the code that I use:

ipaddress: function(value, element) {

author: Ann Robson

return this.optional(element)
/([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))$/i.test(value);

},

I will attach my updated version which uses the most recent jquery.validate.js file as a base.

BEFORE YOU DELETE: the instruction on the Jquery validate home page say to do exactly this, and there is no validate plugin bug submit option, so I'm not sure how else I can submit this enhancement.

Change History (2)

comment:1 Changed 7 years ago by dmethvin

  • Owner set to joern

comment:2 Changed 6 years ago by john

  • Resolution set to invalid
  • Status changed from new to closed

Please file plugin bugs with the appropriate author on their bug tracker.

Note: See TracTickets for help on using tickets.