File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -625,8 +625,8 @@ IrcClient.prototype.matchAction = function(match_regex, cb) {
625625 * Truncate a string into blocks of a set size
626626 */
627627function isHighSurrogate ( char_code ) {
628- return char_code >= 55296 // d800
629- && char_code <= 56319 ; // dbff
628+ return char_code >= 55296 && // d800
629+ char_code <= 56319 ; // dbff
630630}
631631
632632function truncateString ( str , block_size ) {
@@ -639,9 +639,9 @@ function truncateString(str, block_size) {
639639 while ( remaining_string . length ) {
640640 // Do not split unicode surrogate pairs
641641 this_block_size =
642- isHighSurrogate ( remaining_string . charCodeAt ( block_size - 1 ) )
643- ? block_size - 1
644- : block_size ;
642+ isHighSurrogate ( remaining_string . charCodeAt ( block_size - 1 ) ) ?
643+ block_size - 1 :
644+ block_size ;
645645
646646 blocks . push ( remaining_string . substr ( 0 , this_block_size ) ) ;
647647 remaining_string = remaining_string . substr ( this_block_size ) ;
You can’t perform that action at this time.
0 commit comments