Skip to content

Commit 93584f6

Browse files
author
Andreas Müller
committed
replace _ in address with spaces, allows easier integration with scripts
1 parent c9ad6de commit 93584f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/output/invoice.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ class invoice extends Base {
3333
return "";
3434
}
3535
if(!Array.isArray(data)) {
36-
return data;
36+
return data.replace(/_/g, " ");
3737
}
38-
return data.join(separator);
38+
let data2 = [];
39+
data.forEach(el => data2.push(this.concat(el, separator)));
40+
return data2.join(separator);
3941
}
4042

4143
makeStats() {

0 commit comments

Comments
 (0)