Skip to content

Commit 7836070

Browse files
committed
Small patch for bestIM provider
1 parent ad9e935 commit 7836070

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/api/Providers/bestim.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ export const BestIMProvider = {
5050
let line = lines[i];
5151
if (line.startsWith("data: ")) {
5252
let chunk = line.substring(6);
53+
// fix \n
54+
chunk = chunk.replace(/\\n/g, "\n");
5355
yield chunk;
5456
}
5557
}

0 commit comments

Comments
 (0)