fix replies not getting truncated properly
This commit is contained in:
		
							parent
							
								
									145a163e53
								
							
						
					
					
						commit
						353afbc23c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -23,7 +23,7 @@ function processMessage({
 | 
				
			||||||
      console.log(
 | 
					      console.log(
 | 
				
			||||||
        ` \u250d [${reply.author.username}] ${
 | 
					        ` \u250d [${reply.author.username}] ${
 | 
				
			||||||
          length > 79
 | 
					          length > 79
 | 
				
			||||||
            ? replyContent.substring(0, length - headerLength) + "\u2026"
 | 
					            ? replyContent.substring(0, 79 - headerLength) + "\u2026"
 | 
				
			||||||
            : replyContent
 | 
					            : replyContent
 | 
				
			||||||
        }`
 | 
					        }`
 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
| 
						 | 
					@ -34,7 +34,7 @@ function processMessage({
 | 
				
			||||||
          chalk.reset(
 | 
					          chalk.reset(
 | 
				
			||||||
            `${
 | 
					            `${
 | 
				
			||||||
              length > 79
 | 
					              length > 79
 | 
				
			||||||
                ? replyContent.substring(0, length - headerLength) + "\u2026"
 | 
					                ? replyContent.substring(0, 79 - headerLength) + "\u2026"
 | 
				
			||||||
                : replyContent
 | 
					                : replyContent
 | 
				
			||||||
            }`
 | 
					            }`
 | 
				
			||||||
          )
 | 
					          )
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue