Update virtual-machines.tsx

This commit is contained in:
MacRimi
2026-02-03 18:12:37 +01:00
parent 774da61da1
commit bd0fdff29c

View File

@@ -613,7 +613,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)
}