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

Include durations in mute and unmute case notes, clarify bot responses when updating an active mute

This commit is contained in:
Dragory 2019-03-07 22:35:33 +02:00
parent 1b8ba58330
commit bf0813886e
3 changed files with 52 additions and 26 deletions

View file

@ -199,6 +199,10 @@ export function trimLines(str: string) {
.trim();
}
export function asSingleLine(str: string) {
return trimLines(str).replace(/\n/g, " ");
}
export const emptyEmbedValue = "\u200b";
export const embedPadding = "\n" + emptyEmbedValue;