We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69a0ddc commit fb6ead0Copy full SHA for fb6ead0
1 file changed
packages/server/client/balloon.ts
@@ -56,8 +56,11 @@ export const receiptBalloonText = (
56
.replace(/%TEAM/g, i18n[lang].team)
57
.replace(/%STATUS/g, i18n[lang].status)
58
.replace(/%RECEIPT/g, i18n[lang].receipt);
59
- for (const line of config.balloonTemplate.split('\n')) {
60
- if (!line.startsWith('#')) enc = enc.line(replace(line));
+ for (const line of config.balloonTemplate.replace(/\r/g, '').split('\n')) {
+ if (!line.startsWith('#')) {
61
+ enc = enc.line(replace(line));
62
+ continue;
63
+ }
64
const [command, ...rawArgs] = line.slice(1).split(' ');
65
const args = rawArgs.map((arg) => (arg === 'true' ? true : arg === 'false' ? false : Number.isSafeInteger(arg) ? +arg : replace(arg)));
66
if (whitelist.includes(command)) enc = enc[command](...args);
0 commit comments