mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
Update backend/src/plugins/ModActions/functions/parseReason.ts
Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
parent
09022db460
commit
91834c85c3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue