mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
judge: compilerText: allow multiple files
This commit is contained in:
1 file changed
+2
-5
@@ -27,11 +27,8 @@ export namespace Lock {
|
||||
}
|
||||
}
|
||||
|
||||
export function compilerText(stdout: string, stderr: string) {
|
||||
const ret = [];
|
||||
if (!EMPTY_STR.test(stdout)) ret.push(stdout.substring(0, 1024 * 1024));
|
||||
if (!EMPTY_STR.test(stderr)) ret.push(stderr.substring(0, 1024 * 1024));
|
||||
return ret.join('\n');
|
||||
export function compilerText(...messages: string[]) {
|
||||
return messages.filter((i) => !EMPTY_STR.test(i)).map((i) => i.substring(0, 1024 * 1024)).join('\n');
|
||||
}
|
||||
|
||||
function restrictFile(p: string) {
|
||||
|
||||
Reference in new issue
Block a user