projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e052dea
)
#14049 fix regex
author
Jeremy Davis
<jeremyd@freeside.biz>
Fri, 5 Sep 2014 16:03:38 +0000
(12:03 -0400)
committer
Jeremy Davis
<jeremyd@freeside.biz>
Fri, 5 Sep 2014 16:03:38 +0000
(12:03 -0400)
FS/FS/part_export/nena2.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/nena2.pm
b/FS/FS/part_export/nena2.pm
index
50f4b16
..
e172a15
100644
(file)
--- 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',
tie %options, 'Tie::IxHash', (
'company_name' => { label => 'Company name for header record',
- type => 'text'
+ type => 'text'
,
},
'company_id' => { label => 'NENA company ID',
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
$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
}
# phone number