We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f9ac69 commit 6f4708bCopy full SHA for 6f4708b
lib/documentTypes/southwestGasBill.js
@@ -79,13 +79,14 @@ module.exports = {
79
80
// account number
81
let account_number = keyValues['ACCOUNT NUMBER'];
82
+
83
if (!account_number || !account_number.length) {
84
account_number = rawText.filter((line) => (
- line.match(/ACCOUNT NUMBER/g)
85
+ line.match(/ACCOUNT NUM/g)
86
&& line.match(/\d+/g)
87
));
88
- account_number = account_number.length ? account_number[0].replace('ACCOUNT NUMBER: ', '') : '';
89
+ account_number = (/(.*) (\d+\-\d+\-\d+)/g.exec(account_number) || [])[2];
90
}
91
92
return {
0 commit comments