O módulo usa a identidade Supabase, isola cada workspace e registra storage, TTL, runner e biblioteca XLSX como decisões ainda abertas. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
309 B
TypeScript
11 lines
309 B
TypeScript
export function neutralizeSpreadsheetFormula(value: string): string {
|
|
if (/^[=+@]/.test(value) || /^-(?![\d.,])/.test(value) || /^[\t\r]/.test(value)) {
|
|
return `'${value}`;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
export function neutralizeRow(row: string[]): string[] {
|
|
return row.map(neutralizeSpreadsheetFormula);
|
|
}
|