force space between all results all the time, means we don't need the regex fixers

This commit is contained in:
Ean Milligan 2025-04-28 20:28:26 -04:00
parent bba4217bd7
commit 1e350d4e2a
1 changed files with 1 additions and 6 deletions

View File

@ -253,17 +253,12 @@ export const parseRoll = (fullCmd: string, modifiers: RollModifiers): SolvedRoll
// Populate line2 (the results) and line3 (the details) with their data
if (modifiers.order === '') {
line2 += `${preFormat}${e.rollTotal}${postFormat}${escapeCharacters(e.rollPostFormat, '|*_~`')}`;
line2 += `${preFormat}${e.rollTotal}${postFormat}${escapeCharacters(e.rollPostFormat, '|*_~`')} `;
} else {
// If order is on, turn rolls into csv without formatting
line2 += `${preFormat}${e.rollTotal}${postFormat}, `;
}
line2 = line2
.replace(/\*\*\*\*/g, '** **')
.replace(/____/g, '__ __')
.replace(/~~~~/g, '~~ ~~');
line3 += `\`${e.initConfig}\` = ${e.rollDetails} = ${preFormat}${e.rollTotal}${postFormat}\n`;
});