diff --git a/AppImage/components/virtual-machines.tsx b/AppImage/components/virtual-machines.tsx index 8d47ffb9..c2c90df9 100644 --- a/AppImage/components/virtual-machines.tsx +++ b/AppImage/components/virtual-machines.tsx @@ -623,7 +623,7 @@ const handleDownloadLogs = async (vmid: number, vmName: string) => { } const isHTML = (str: string): boolean => { - const htmlRegex = /<\/?[a-z][\s\S]*>/i + const htmlRegex = new RegExp('<\\/?[a-z][\\s\\S]*>', 'i') return htmlRegex.test(str) }