feature: Implement Gmail message fetching and Excel sheet name truncation

This commit is contained in:
Keith Solomon
2026-05-17 10:59:44 -05:00
parent cb568597dc
commit 379526114c
9 changed files with 289 additions and 163 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
const invalidSheetCharacters = /[:/\\?*[\]]/g;
export function sanitizeSheetName(input: string): string {
export function sanitizeSheetName(input: string, maxLength = 100): string {
const cleaned = input.replace(invalidSheetCharacters, ' ').replace(/\s+/g, ' ').trim();
return (cleaned || 'Newsletter').slice(0, 100);
return (cleaned || 'Newsletter').slice(0, maxLength);
}
export function escapeCell(value: unknown): unknown {