[freeside-commits] branch master updated. 793f8a0bef01192d9ac889808a462f2166d71c4f

Jeremy Davis jeremyd at 420.am
Fri Sep 5 09:02:14 PDT 2014


The branch, master has been updated
       via  793f8a0bef01192d9ac889808a462f2166d71c4f (commit)
      from  03e71483c54ec32d701d6726ec0f5b6b8aa48b02 (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 793f8a0bef01192d9ac889808a462f2166d71c4f
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Fri Sep 5 12:01:09 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