mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui&judge: bug fixes and improvements
This commit is contained in:
4 files changed
+4
-2
No files matched your search
@@ -29,8 +29,7 @@ export function parse(output: string, fullscore: number) {
|
||||
if (p === 1) {
|
||||
status = STATUS.STATUS_ACCEPTED;
|
||||
score = fullscore;
|
||||
const base = output.replace('points ', '') || '';
|
||||
message = base.substring(base.indexOf(' '), 1024);
|
||||
message = output.replace(/^points [\d.]+ /, '') || '';
|
||||
} else score = Math.floor(fullscore * p);
|
||||
}
|
||||
while (operation.test(message)) {
|
||||
|
||||
Reference in new issue
Block a user