diff --git a/src/components/Proxmox/CreateVmDialog.tsx b/src/components/Proxmox/CreateVmDialog.tsx index 2a189226..d644365d 100644 --- a/src/components/Proxmox/CreateVmDialog.tsx +++ b/src/components/Proxmox/CreateVmDialog.tsx @@ -70,11 +70,11 @@ export function CreateVmDialog({ isOpen, clusterId, onClose, onCreated }: Create }); }, [isOpen, clusterId]); - const ISO_RE = /^[a-zA-Z0-9_-]+:iso\/.+\.iso$/; + const ISO_RE = /^[a-zA-Z0-9_-]+:iso\/[^,]+$/; const validateIso = (value: string): string => { if (!value) return ''; - return ISO_RE.test(value) ? '' : "Must be in the format 'storage:iso/filename.iso'"; + return ISO_RE.test(value) ? '' : "Must be in the format 'storage:iso/filename'"; }; const handleIsoChange = (value: string) => { @@ -279,7 +279,7 @@ export function CreateVmDialog({ isOpen, clusterId, onClose, onCreated }: Create {isoError ? (
{isoError}
) : ( -Format: storage:iso/filename.iso
+Format: storage:iso/filename
)}