From 1cda890d2a1faa2203044cf7c0470b0aba53b449 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 18 Nov 2011 22:20:34 +0000 Subject: [PATCH] allow two-digit zips --- FS/FS/Record.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 72754d03d..746cb5902 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -2468,7 +2468,7 @@ sub ut_zip { { $self->setfield($field,''); } else { - $self->getfield($field) =~ /^\s*(\w[\w\-\s]{2,8}\w)\s*$/ + $self->getfield($field) =~ /^\s*(\w[\w\-\s]{0,8}\w)\s*$/ or return gettext('illegal_zip'). " $field: ". $self->getfield($field); $self->setfield($field,$1); } -- 2.11.0