mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
Fix
This commit is contained in:
@@ -39,7 +39,7 @@ module.exports = class FrinkiacCommand extends Command {
|
||||
const wrapped = [''];
|
||||
let currentLine = 0;
|
||||
for (const word of caption) {
|
||||
if (currentLine.length + word.length < 26) {
|
||||
if (wrapped[currentLine].length + word.length < 26) {
|
||||
wrapped[currentLine] += ` ${word}`;
|
||||
} else {
|
||||
wrapped.push(` ${word}`);
|
||||
|
||||
Reference in New Issue
Block a user