mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 09:03:50 -04:00
force space between all results all the time, means we don't need the regex fixers
This commit is contained in:
@@ -253,17 +253,12 @@ export const parseRoll = (fullCmd: string, modifiers: RollModifiers): SolvedRoll
|
|||||||
|
|
||||||
// Populate line2 (the results) and line3 (the details) with their data
|
// Populate line2 (the results) and line3 (the details) with their data
|
||||||
if (modifiers.order === '') {
|
if (modifiers.order === '') {
|
||||||
line2 += `${preFormat}${e.rollTotal}${postFormat}${escapeCharacters(e.rollPostFormat, '|*_~`')}`;
|
line2 += `${preFormat}${e.rollTotal}${postFormat}${escapeCharacters(e.rollPostFormat, '|*_~`')} `;
|
||||||
} else {
|
} else {
|
||||||
// If order is on, turn rolls into csv without formatting
|
// If order is on, turn rolls into csv without formatting
|
||||||
line2 += `${preFormat}${e.rollTotal}${postFormat}, `;
|
line2 += `${preFormat}${e.rollTotal}${postFormat}, `;
|
||||||
}
|
}
|
||||||
|
|
||||||
line2 = line2
|
|
||||||
.replace(/\*\*\*\*/g, '** **')
|
|
||||||
.replace(/____/g, '__ __')
|
|
||||||
.replace(/~~~~/g, '~~ ~~');
|
|
||||||
|
|
||||||
line3 += `\`${e.initConfig}\` = ${e.rollDetails} = ${preFormat}${e.rollTotal}${postFormat}\n`;
|
line3 += `\`${e.initConfig}\` = ${e.rollDetails} = ${preFormat}${e.rollTotal}${postFormat}\n`;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user