force space between all results all the time, means we don't need the regex fixers
This commit is contained in:
		
							parent
							
								
									bba4217bd7
								
							
						
					
					
						commit
						1e350d4e2a
					
				| 
						 | 
					@ -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`;
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue