public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox-widget-toolkit v3] fix #2685: ui: allow 4-bit suffix in mac_prefix
@ 2026-02-24 16:14 Moayad Almalat
  0 siblings, 0 replies; only message in thread
From: Moayad Almalat @ 2026-02-24 16:14 UTC (permalink / raw)
  To: pve-devel

---
 src/Toolkit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Toolkit.js b/src/Toolkit.js
index d4e579b..008a04c 100644
--- a/src/Toolkit.js
+++ b/src/Toolkit.js
@@ -72,7 +72,7 @@ Ext.apply(Ext.form.field.VTypes, {
     MacAddressText: gettext('Example') + ': 01:23:45:67:89:ab',
 
     MacPrefix: function (v) {
-        return /^[a-f0-9][02468ace](?::[a-f0-9]{2}){0,2}:?$/i.test(v);
+        return /^[a-f0-9][02468ace](?::[a-f0-9]{2}){0,2}(?::[a-f0-9]?)?$/i.test(v);
     },
     MacPrefixMask: /[a-fA-F0-9:]/,
     MacPrefixText:
-- 
2.47.3




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-24 16:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-24 16:14 [PATCH proxmox-widget-toolkit v3] fix #2685: ui: allow 4-bit suffix in mac_prefix Moayad Almalat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal