mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
judge: fix testlib points message
This commit is contained in:
1 parent
4f4e6f9377
commit
27056c5b69
2 files changed
+2
-2
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user