Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#737 closed enhancement (fixed)

validators.isValidIPAddress4 using only regexps

Reported by: mattimustang@… Owned by: Adrian Holovaty
Component: Validators Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Hi, The attached diff simplifies the isValidIPAddress4 validator so that it uses only regexps to check the IP address rather than splitting and checking the value of each field.

Attachments (1) (1.2 KB) - added by mattimustang@… 13 years ago.
isValidIPAddress4 enhancement

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by mattimustang@…

Attachment: added

isValidIPAddress4 enhancement

comment:1 Changed 13 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [1093]) Fixed #737 -- Changed validators.isValidIPAddress4 to use a single regex. Thanks, mattimustang

Note: See TracTickets for help on using tickets.
Back to Top