[freeside-commits] branch FREESIDE_3_BRANCH updated. b13dda3c202b7eb07167e6423ee71c63f18cdac1
Jeremy Davis
jeremyd at 420.am
Fri Sep 5 09:03:53 PDT 2014
The branch, FREESIDE_3_BRANCH has been updated
via b13dda3c202b7eb07167e6423ee71c63f18cdac1 (commit)
from e052dea3e4b83b6d077e91436065d8def68ebeca (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b13dda3c202b7eb07167e6423ee71c63f18cdac1
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Fri Sep 5 12:03:38 2014 -0400
#14049 fix regex
diff --git a/FS/FS/part_export/nena2.pm b/FS/FS/part_export/nena2.pm
index 50f4b16..e172a15 100644
--- a/FS/FS/part_export/nena2.pm
+++ b/FS/FS/part_export/nena2.pm
@@ -15,7 +15,7 @@ my %upload_targets;
tie %options, 'Tie::IxHash', (
'company_name' => { label => 'Company name for header record',
- type => 'text'
+ type => 'text',
},
'company_id' => { label => 'NENA company ID',
type => 'text',
@@ -226,8 +226,8 @@ sub data {
$hash{function_code} = $function_code{$action};
# Add default area code if phonenum is 7 digits
- if ($self->option('area_code') =~ /^\d{3}/ && $svc->phonenum =~ /^\d{7}/ ){
- $svc->phonenum = $self->option('area_code'). $svc->phonenum
+ if ($self->option('area_code') =~ /^\d{3}$/ && $svc->phonenum =~ /^\d{7}$/ ){
+ $svc->phonenum = $self->option('area_code'). $svc->phonenum;
}
# phone number
-----------------------------------------------------------------------
Summary of changes:
FS/FS/part_export/nena2.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
More information about the freeside-commits
mailing list