From f32d703bd7bd47236487fb4a05e3d5efd3fb2ec0 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 19 Jan 2009 03:50:47 +0000 Subject: 10 digit prefix matching, RT#4403 --- httemplate/edit/process/rate_region.cgi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'httemplate/edit/process') diff --git a/httemplate/edit/process/rate_region.cgi b/httemplate/edit/process/rate_region.cgi index 861a6dc2e..882991e9d 100755 --- a/httemplate/edit/process/rate_region.cgi +++ b/httemplate/edit/process/rate_region.cgi @@ -24,11 +24,13 @@ my $countrycode = $cgi->param('countrycode'); my @npa = split(/\s*,\s*/, $cgi->param('npa')); $npa[0] = '' unless @npa; my @rate_prefix = map { - my($npa,$nxx) = split('-', $_); + #my($npa,$nxx) = split('-', $_); + s/\D//g; new FS::rate_prefix { 'countrycode' => $countrycode, - 'npa' => $npa, - 'nxx' => $nxx, + #'npa' => $npa, + #'nxx' => $nxx, + 'npa' => $_, } } @npa; -- cgit v1.2.1