diff --git a/apps/admin-ui/src/clients/import/ImportForm.tsx b/apps/admin-ui/src/clients/import/ImportForm.tsx index 65478a9983..35ed187a3c 100644 --- a/apps/admin-ui/src/clients/import/ImportForm.tsx +++ b/apps/admin-ui/src/clients/import/ImportForm.tsx @@ -32,7 +32,7 @@ import { FormFields } from "../ClientDetails"; import { toClient } from "../routes/Client"; import { toClients } from "../routes/Clients"; -const isXml = (text: string) => text.startsWith("<"); +const isXml = (text: string) => text.match(/(<.[^(><.)]+>)/g); export default function ImportForm() { const { t } = useTranslation("clients");