mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: fix message truncate
This commit is contained in:
1 parent
5ffb9c4b93
commit
79839d64e5
2 files changed
+3
-3
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "2.13.5",
|
"version": "2.13.6",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -39,8 +39,8 @@ const checkers: Record<string, Checker> = {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (usr.length > 20) usrString = `${usrString.substring(0, 16)}...`;
|
if (usrString.length > 20) usrString = `${usrString.substring(0, 16)}...`;
|
||||||
if (std.length > 20) stdString = `${stdString.substring(0, 16)}...`;
|
if (stdString.length > 20) stdString = `${stdString.substring(0, 16)}...`;
|
||||||
message = { message: 'Read {0}, expect {1}.', params: [usrString, stdString] };
|
message = { message: 'Read {0}, expect {1}.', params: [usrString, stdString] };
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in new issue
Block a user