trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fri...@apache.org
Subject [incubator-trafficcontrol] 02/02: remove zip validation
Date Wed, 24 Jan 2018 22:19:32 GMT
This is an automated email from the ASF dual-hosted git repository.

friede pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git

commit 3c11b3d2e2b62e20b247d258734ca81dd081c3ec
Author: David Neuman <david.neuman64@gmail.com>
AuthorDate: Wed Jan 24 15:13:45 2018 -0700

    remove zip validation
---
 traffic_ops/app/lib/UI/PhysLocation.pm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/traffic_ops/app/lib/UI/PhysLocation.pm b/traffic_ops/app/lib/UI/PhysLocation.pm
index 02cee29..258c1aa 100644
--- a/traffic_ops/app/lib/UI/PhysLocation.pm
+++ b/traffic_ops/app/lib/UI/PhysLocation.pm
@@ -345,7 +345,6 @@ sub is_valid {
 	$self->field('location.address')->is_required->is_like( qr/^[a-zA-Z0-9\ \.\-]+/,
"Use alphanumeric characters, '.','-', or space." );
 	$self->field('location.city')->is_required->is_like( qr/^[a-zA-Z0-9\ \.\-]+/, "Use
alphanumeric characters, '.','-', or space." );
 	$self->field('location.state')->is_required->is_like( qr/^[A-Z]{2}/, "Uppercase
2 char. state abbreviation." );
-	$self->field('location.zip')->is_required->is_like( qr/^[0-9]/, "Enter a valid
zip code." );
 	$self->field('location.phone')->is_like( qr/^$|[0-9]{3}\-[0-9]{3}\-[0-9]{4}/, "Phone
number format is: ###-###-####" );
 	$self->field('location.email')->check( sub {
 			my ( $value, $params ) = @_;

-- 
To stop receiving notification emails like this one, please contact
friede@apache.org.

Mime
View raw message