Skip to content

The open alternative to Salesforce, designed for AI.

Fix number csv import (#4114)

brendanlaschkef407c70356b7
diff --git a/packages/twenty-front/src/modules/object-record/spreadsheet-import/util/getSpreadSheetValidation.ts b/packages/twenty-front/src/modules/object-record/spreadsheet-import/util/getSpreadSheetValidation.ts
index c546a3d19e9..7cd171b8dcb 100644
--- a/packages/twenty-front/src/modules/object-record/spreadsheet-import/util/getSpreadSheetValidation.ts
+++ b/packages/twenty-front/src/modules/object-record/spreadsheet-import/util/getSpreadSheetValidation.ts
@@ -13,7 +13,7 @@ export const getSpreadSheetValidation = (
return [
{
rule: 'regex',
- value: '^d+$',
+ value: '^\\d+$',
errorMessage: fieldName + ' must be a number',
level: 'error',
},