File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ class ChatMessage {
197
197
// If the index is not defined is is invalid, return toString
198
198
if ( typeof idx !== 'number' ) return this . toString ( lang )
199
199
// If we are not a translating message, return the text
200
- if ( this . text && idx === 0 ) return this . text . replace ( / § [ 0 - 9 a - f l n m o k r ] / g, '' ) . trim ( )
200
+ if ( this . text && idx === 0 ) return this . text . replace ( / § [ 0 - 9 a - f l n m o k r ] / g, '' )
201
201
// Else return the with child if it's in range
202
202
else if ( this . with . length > idx ) return this . with [ idx ] . toString ( lang )
203
203
// Else return the extra if it's in range
@@ -225,7 +225,7 @@ class ChatMessage {
225
225
if ( this . extra ) {
226
226
message += this . extra . map ( ( entry ) => entry . toString ( lang ) ) . join ( '' )
227
227
}
228
- return message . replace ( / § [ 0 - 9 a - f l n m o k r ] / g, '' ) . trim ( )
228
+ return message . replace ( / § [ 0 - 9 a - f l n m o k r ] / g, '' )
229
229
}
230
230
231
231
toMotd ( lang = defaultLang ) {
@@ -271,7 +271,7 @@ class ChatMessage {
271
271
if ( this . extra ) {
272
272
message += this . extra . map ( ( entry ) => entry . toMotd ( lang ) ) . join ( '' )
273
273
}
274
- return message . trim ( )
274
+ return message
275
275
}
276
276
277
277
toAnsi ( lang ) {
You can’t perform that action at this time.
0 commit comments