chore: Lint extensions folder.

This commit is contained in:
cpojer
2026-01-31 22:13:48 +09:00
parent 4f2166c503
commit 230ca789e2
221 changed files with 4006 additions and 1583 deletions

View File

@@ -61,9 +61,15 @@ export function stripMarkdownForTwitch(markdown: string): string {
export function chunkTextForTwitch(text: string, limit: number): string[] {
// First, strip markdown
const cleaned = stripMarkdownForTwitch(text);
if (!cleaned) return [];
if (limit <= 0) return [cleaned];
if (cleaned.length <= limit) return [cleaned];
if (!cleaned) {
return [];
}
if (limit <= 0) {
return [cleaned];
}
if (cleaned.length <= limit) {
return [cleaned];
}
const chunks: string[] = [];
let remaining = cleaned;