Skip to content

Commit 34c4c25

Browse files
committed
Remove carriage return
1 parent 233855c commit 34c4c25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codec2talkie/src/main/java/com/radio/codec2talkie/tools/TextTools.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public static String getString(ByteBuffer byteBuffer) {
4545
while (byteBuffer.hasRemaining()) {
4646
byte b = byteBuffer.get();
4747
char c = charset.decode(ByteBuffer.wrap(new byte[]{b})).toString().charAt(0);
48+
if (c == '\r') continue;
4849
if (c == '\n') {
4950
break;
5051
}

0 commit comments

Comments
 (0)