mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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
@@ -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