Merge pull request 'fix: paser로 인해 인공지능의 띄어쓰기가 이상해지는 문제 해결' (#5) from feature/markdown into main
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 2m20s
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 2m20s
Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
@@ -247,7 +247,7 @@
|
|||||||
buffer = buffer.substring(eventEnd + 2);
|
buffer = buffer.substring(eventEnd + 2);
|
||||||
const dataLines = event.split('\n')
|
const dataLines = event.split('\n')
|
||||||
.filter(line => line.startsWith('data:'))
|
.filter(line => line.startsWith('data:'))
|
||||||
.map(line => line.substring(5).replace(/^ /, ''));
|
.map(line => line.substring(5));
|
||||||
|
|
||||||
if (dataLines.length > 0) onData(dataLines.join('\n'));
|
if (dataLines.length > 0) onData(dataLines.join('\n'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user