core&ui&judge: bug fixes and improvements

This commit is contained in:
undefined committed 2023-11-12 23:51:00 +08:00
1 parent 16992e057d
commit efde5b339f
4 files changed
+4 -2

No files matched your search

+1 -2
View File
@@ -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)) {