]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit - src/Utils.js
fix #3593: add CpuSet type to js
authorDaniel Bowder <daniel@bowdernet.com>
Fri, 1 Jul 2022 00:09:47 +0000 (17:09 -0700)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 10 Nov 2022 08:40:00 +0000 (09:40 +0100)
commit9109c39202e96330872435fc23252f935a1ede0f
tree2afb4a8fe44e2b184b2051b2ff80a4cdf09ea897
parentd17aa32eb48bfee80a1ac53c2124fd2a77bed1d1
fix #3593: add CpuSet type to js

Regex parses a cpuset via 2 matches. Find number(s) or range(s) folowed
by a comma, then, find a single number or a single range not followed
by a comma. E.g., 0-1,4-5,6,7,10,11,14-15
CpuSet function first checks regex, then ensures left num <= right num

Signed-off-by: Daniel Bowder <daniel@bowdernet.com>
src/Toolkit.js
src/Utils.js