From 1e350d4e2af718ac3d14172a89e6defeedbb4b09 Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Mon, 28 Apr 2025 20:28:26 -0400 Subject: [PATCH] force space between all results all the time, means we don't need the regex fixers --- src/solver/parser.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/solver/parser.ts b/src/solver/parser.ts index 91bb984..543c22e 100644 --- a/src/solver/parser.ts +++ b/src/solver/parser.ts @@ -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`; });