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
@@ -39,8 +39,8 @@ const checkers: Record<string, Checker> = {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (usr.length > 20) usrString = `${usrString.substring(0, 16)}...`;
|
||||
if (std.length > 20) stdString = `${stdString.substring(0, 16)}...`;
|
||||
if (usrString.length > 20) usrString = `${usrString.substring(0, 16)}...`;
|
||||
if (stdString.length > 20) stdString = `${stdString.substring(0, 16)}...`;
|
||||
message = { message: 'Read {0}, expect {1}.', params: [usrString, stdString] };
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in new issue
Block a user