judge: fix testlib points message

This commit is contained in:
undefined committed 2022-05-04 12:00:07 +08:00
1 parent 4f4e6f9377
commit 27056c5b69
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js",
"version": "2.18.1",
"version": "2.18.2",
"main": "package.json",
"author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -29,7 +29,7 @@ export function parse(output: string, fullscore: number) {
if (p === 1) {
status = STATUS.STATUS_ACCEPTED;
score = fullscore;
const base = output.split('points ')[1] || '';
const base = output.replace('points ', '') || '';
message = base.substring(base.indexOf(' '), 1024);
} else score = Math.floor(fullscore * p);
}