mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 03:39:26 +00:00
fix multi-emote rendering for 7tv
This commit is contained in:
@@ -585,12 +585,12 @@ export class BroadcastRenderer {
|
|||||||
enhanced.push(fragment);
|
enhanced.push(fragment);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const parts = fragment.text.split(/(\\s+)/);
|
const parts = fragment.text.split(/(\s+)/);
|
||||||
parts.forEach((part) => {
|
parts.forEach((part) => {
|
||||||
if (!part) {
|
if (!part) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (/^\\s+$/.test(part)) {
|
if (/^\s+$/.test(part)) {
|
||||||
enhanced.push({ type: "text", text: part });
|
enhanced.push({ type: "text", text: part });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user