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(
 | 
			
		||||
        ` \u250d [${reply.author.username}] ${
 | 
			
		||||
          length > 79
 | 
			
		||||
            ? replyContent.substring(0, length - headerLength) + "\u2026"
 | 
			
		||||
            ? replyContent.substring(0, 79 - headerLength) + "\u2026"
 | 
			
		||||
            : replyContent
 | 
			
		||||
        }`
 | 
			
		||||
      );
 | 
			
		||||
| 
						 | 
				
			
			@ -34,7 +34,7 @@ function processMessage({
 | 
			
		|||
          chalk.reset(
 | 
			
		||||
            `${
 | 
			
		||||
              length > 79
 | 
			
		||||
                ? replyContent.substring(0, length - headerLength) + "\u2026"
 | 
			
		||||
                ? replyContent.substring(0, 79 - headerLength) + "\u2026"
 | 
			
		||||
                : replyContent
 | 
			
		||||
            }`
 | 
			
		||||
          )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue