Remove trailing comma from assign list copy/export format.

Copy and export now output URL,主播: name without a comma at line end.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric 2026-08-22 03:16:36 -05:00
parent 91cdcd74b3
commit d37b06f9af

View File

@ -107,7 +107,7 @@ function formatExportLine(url: string, title?: string): string {
const u = String(url || "").trim();
const t = String(title || "").trim();
if (!u) return "";
return t ? `${u},主播: ${t},` : `${u},`;
return t ? `${u},主播: ${t}` : u;
}
function exportText(rows: Array<{ url?: string; title?: string }>): string {