ROWY-647: fix import wizard suggesting URLs should be a phone number column

This commit is contained in:
Sidney Alcantara
2022-09-23 12:13:27 +10:00
parent 0acca9d859
commit c33484fbba

View File

@@ -58,8 +58,8 @@ const inferTypeFromValue = (value: any) => {
if (typeof value === "string") {
if (REGEX_EMAIL.test(value)) return FieldType.email;
if (REGEX_PHONE.test(value)) return FieldType.phone;
if (REGEX_URL.test(value)) return FieldType.url;
if (REGEX_PHONE.test(value)) return FieldType.phone;
if (REGEX_HTML.test(value)) return FieldType.richText;
if (value.length >= 50) return FieldType.longText;
return FieldType.shortText;