Skip to content

Commit

Permalink
use spaces instead of underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
dtxe committed Feb 20, 2024
1 parent 336dacd commit 7448304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h4 style="margin-top: 2em;">Interactive table</h4>

const parseTextToTable = (input) => {
let initials = document.getElementById('initials').value.toUpperCase();
initials = initials.length == 0 ? '' : initials + '_';
initials = initials.length == 0 ? '' : initials + ' ';


const lines = input.split('\n').filter(line => line.trim() !== '');
Expand All @@ -74,7 +74,7 @@ <h4 style="margin-top: 2em;">Interactive table</h4>
const amountInCAD = amounts[1].replace(/,/g, '');
const amountInOriginalCurrency = (amounts[3] ? `${amounts[2]} ${amounts[3]}` : '').replace(/,/g, '');
const dateFormatted = formatDate(currentDate);
const filename = `${initials}${dateFormatted}_${expenseName.replace(/[^a-zA-Z0-9.\-_]/g, '')}_${amountInCAD}.pdf`;
const filename = `${initials}${dateFormatted} ${expenseName.replace(/[^a-zA-Z0-9.\-_]/g, '')} (${amountInCAD}).pdf`;

table.push([
currentDate.toLocaleDateString('en-CA'),
Expand Down

0 comments on commit 7448304

Please sign in to comment.