mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-02-19 17:06:37 +00:00
Update virtual-machines.tsx
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user