File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ module.exports = {
48
48
if ( ! street_address_line_1 && lineWithCityStateZipIndex > 0 ) {
49
49
street_address_line_1 = rawText [ lineWithCityStateZipIndex - 1 ] ;
50
50
}
51
- console . log ( street_address_line_1 , street_address_line_2 ) ;
52
51
if ( lineWithCityStateZip === street_address_line_2 || street_address_line_1 === street_address_line_2 ) {
53
52
// case of no street_address_line_2
54
53
street_address_line_2 = '' ;
Original file line number Diff line number Diff line change @@ -41,8 +41,9 @@ module.exports = {
41
41
if ( customer ) {
42
42
// first name & last name (dropping anything between first and last words)
43
43
first_name = customer . split ( ' or ' ) [ 0 ] . split ( ' ' ) . slice ( 0 , 1 ) . join ( ' ' ) ;
44
- last_name = customer . split ( ' or ' ) [ 0 ] . split ( ' ' ) . slice ( - 1 ) . join ( ' ' ) ;
44
+ last_name = customer . split ( ' or ' ) [ 0 ] . split ( ' ' ) . slice ( 1 , 2 ) . join ( ' ' ) ;
45
45
}
46
+ console . log ( customer ) ;
46
47
47
48
// street address line 1 & 2
48
49
const lineWithCityStateZipCodeIndex = rawText . findIndex ( ( line ) => line . match ( / ^ [ A - Z \s ] + [ A - Z ] { 2 } \d + - ? \d + $ / g) ) ;
You can’t perform that action at this time.
0 commit comments