diff options
author | ivan <ivan> | 2009-01-19 03:50:47 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-01-19 03:50:47 +0000 |
commit | f32d703bd7bd47236487fb4a05e3d5efd3fb2ec0 (patch) | |
tree | bd990570884348cc78322a0ecc7e27eed1727b8b /httemplate/edit | |
parent | 389d926e17989db22affd78a4b0c6820fa152c9e (diff) |
10 digit prefix matching, RT#4403
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-x | httemplate/edit/process/rate_region.cgi | 8 |
1 files changed, 5 insertions, 3 deletions
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; |