core: update judge config

This commit is contained in:
undefined committed 2022-02-25 12:09:32 +08:00
1 parent d13876a5bc
commit a2004056ac
22 files changed
+100 -245

No files matched your search

+2 -2
View File
@@ -59,7 +59,7 @@ function checkStringArray(args: ParseEntry[]): args is string[] {
}
function parseArgs(execute: string): string[] {
const args = cmd(execute.replace(/\$\{dir\}/g, '/w'));
const args = cmd(execute);
if (!checkStringArray(args)) {
throw new SystemError(`${execute} contains invalid operator`);
}
@@ -76,7 +76,7 @@ function proc({
env = {},
}: Parameter = {}): Cmd {
if (!supportOptional) {
copyOut = (copyOut as string[]).map((i) => (i.endsWith('?') ? i.substr(0, i.length - 1) : i));
copyOut = copyOut.map((i) => (i.endsWith('?') ? i.substring(0, i.length - 1) : i));
}
const size = parseMemoryMB(getConfig('stdio_size'));
const rate = getConfig('rate');