Skip to content

Commit ac00f85

Browse files
committed
fix southwest gas extraction
1 parent 336240a commit ac00f85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/documentTypes/arizonaDriverLicense.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ module.exports = {
4848
if (!street_address_line_1 && lineWithCityStateZipIndex > 0) {
4949
street_address_line_1 = rawText[lineWithCityStateZipIndex - 1];
5050
}
51-
console.log(street_address_line_1, street_address_line_2);
5251
if (lineWithCityStateZip === street_address_line_2 || street_address_line_1 === street_address_line_2) {
5352
// case of no street_address_line_2
5453
street_address_line_2 = '';

lib/documentTypes/southwestGasBill.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ module.exports = {
4141
if (customer) {
4242
// first name & last name (dropping anything between first and last words)
4343
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(' ');
4545
}
46+
console.log(customer);
4647

4748
// street address line 1 & 2
4849
const lineWithCityStateZipCodeIndex = rawText.findIndex((line) => line.match(/^[A-Z\s]+ [A-Z]{2} \d+-?\d+$/g));

0 commit comments

Comments
 (0)