Add a more robust XML check (#4226)
This commit is contained in:
parent
2fa230bdd2
commit
2d4ba721b8
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue