HttpProxyText: gettext('Example') + ": http://username:password@host:port/",
CpuSet: function(v) {
- if (!Proxmox.Utils.CpuSet_match.test(v)) {
- return false;
- }
- let groups = v.split(",");
- for (let i = 0; i < groups.length; i++) {
- if (!groups[i].includes("-")) {
- continue;
- }
- let values = groups[i].split("-");
- let left = parseInt(values[0], 10);
- let right = parseInt(values[1], 10);
- if (left > right) {
- return false;
- }
- }
- return true;
+ return Proxmox.Utils.CpuSet_match.test(v);
},
CpuSetText: gettext('This is not a valid CpuSet'),