Opened 19 years ago

Closed 19 years ago

Last modified 18 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

Description

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)

validators.py.diff (1.2 KB ) - added by mattimustang@… 19 years ago.
isValidIPAddress4 enhancement

Download all attachments as: .zip

Change History (2)

by mattimustang@…, 19 years ago

Attachment: validators.py.diff added

isValidIPAddress4 enhancement

comment:1 by Adrian Holovaty, 19 years ago

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