]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/Parser.js
bump version to 8.2.7
[pve-manager.git] / www / manager6 / Parser.js
index bc6a4338038adf1fcf963bf05da4d3bae0b1b4d0..07eb9b1767e126f5a15b2ad0601bafade303812a 100644 (file)
@@ -65,7 +65,7 @@ Ext.define('PVE.Parser', {
                    if (Ext.isDefined(res[defaultKey])) {
                        throw 'defaultKey may be only defined once in propertyString';
                    }
-                   res[defaultKey] = k; // k ist the value in this case
+                   res[defaultKey] = k; // k is the value in this case
                } else {
                    throw `Failed to parse key-value pair: ${property}`;
                }
@@ -114,14 +114,14 @@ Ext.define('PVE.Parser', {
 
            let match_res;
 
-           if ((match_res = p.match(/^(ne2k_pci|e1000|e1000-82540em|e1000-82544gc|e1000-82545em|vmxnet3|rtl8139|pcnet|virtio|ne2k_isa|i82551|i82557b|i82559er)(=([0-9a-f]{2}(:[0-9a-f]{2}){5}))?$/i)) !== null) {
+           if ((match_res = p.match(/^(ne2k_pci|e1000e?|e1000-82540em|e1000-82544gc|e1000-82545em|vmxnet3|rtl8139|pcnet|virtio|ne2k_isa|i82551|i82557b|i82559er)(=([0-9a-f]{2}(:[0-9a-f]{2}){5}))?$/i)) !== null) {
                res.model = match_res[1].toLowerCase();
                if (match_res[3]) {
                    res.macaddr = match_res[3];
                }
            } else if ((match_res = p.match(/^bridge=(\S+)$/)) !== null) {
                res.bridge = match_res[1];
-           } else if ((match_res = p.match(/^rate=(\d+(\.\d+)?)$/)) !== null) {
+           } else if ((match_res = p.match(/^rate=(\d+(\.\d+)?|\.\d+)$/)) !== null) {
                res.rate = match_res[1];
            } else if ((match_res = p.match(/^tag=(\d+(\.\d+)?)$/)) !== null) {
                res.tag = match_res[1];