3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 18:25:03 +00:00

Update backend/src/plugins/ModActions/functions/parseReason.ts

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
metal 2021-09-23 12:00:04 +01:00 committed by almeidx
parent 09022db460
commit 91834c85c3
No known key found for this signature in database
GPG key ID: F403F80B79353CB4

View file

@ -8,7 +8,7 @@ export function parseReason(config: TConfigSchema, reason: string): string {
reason = config.reason_aliases![reason.toLowerCase()] ?? reason;
}
if (reason!.length > MAX_REASON_LENGTH) {
reason = reason!.substring(0, MAX_REASON_LENGTH - 6) + " [...]";
reason = reason!.substring(0, MAX_REASON_LENGTH - 4) + " […]";
}
return reason;
}