core: bug fixes

This commit is contained in:
undefined committed 2022-10-29 14:30:42 +08:00
1 parent 5baf8f3207
commit 7f7d674dc4
6 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ export function parse(output: string, fullscore: number) {
let status = STATUS.STATUS_WRONG_ANSWER;
let score = 0;
let builder = (msg: string) => msg;
let message = output.substring(0, 1024);
let message = `${output.substring(0, 1024)} `;
if (output.startsWith('ok ')) {
status = STATUS.STATUS_ACCEPTED;
score = fullscore;