Skip to content

Commit

Permalink
fix(chat): remove \r for windows users
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Apr 12, 2021
1 parent 3f48974 commit 7e19539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-chat/src/receiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function apply(ctx: Context, config: ReceiverConfig = {}) {
}

async function prepareAbstract(session: Session, params: Message, timestamp: number) {
const codes = segment.parse(params.content.split('\n', 1)[0])
const codes = segment.parse(params.content.split(/\r?\n/, 1)[0])
params.abstract = ''
for (const code of codes) {
if (textSegmentTypes.includes(code.type)) {
Expand Down

0 comments on commit 7e19539

Please sign in to comment.