We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30e8258 commit ca07d5eCopy full SHA for ca07d5e
backend/question-service/src/controllers/questionController.ts
@@ -402,9 +402,9 @@ const formatQuestionIndivResponse = async (question: IQuestion) => {
402
const inputs = (await getFileContent(question.testcaseInputFileUrl))
403
.replace(/\r\n/g, "\n")
404
.split(testcaseDelimiter);
405
- const outputs = (await getFileContent(question.testcaseOutputFileUrl)).split(
406
- testcaseDelimiter,
407
- );
+ const outputs = (await getFileContent(question.testcaseOutputFileUrl))
+ .replace(/\r\n/g, "\n")
+ .split(testcaseDelimiter);
408
return {
409
id: question._id,
410
title: question.title,
0 commit comments