Update virtual-machines.tsx

This commit is contained in:
MacRimi
2026-02-03 17:41:34 +01:00
parent 36e201e824
commit 42e67e01aa

View File

@@ -623,7 +623,7 @@ const handleDownloadLogs = async (vmid: number, vmName: string) => {
} }
const isHTML = (str: string): boolean => { 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) return htmlRegex.test(str)
} }