From be7fcf68576a8299185080c0da37f46e15489c41 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Thu, 9 Jan 2025 00:20:08 -0600 Subject: [PATCH] xml: T5738: Reuse predefined regex constraint --- interface-definitions/container.xml.in | 2 +- interface-definitions/include/haproxy/rule-backend.xml.i | 2 +- interface-definitions/include/haproxy/rule-frontend.xml.i | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interface-definitions/container.xml.in b/interface-definitions/container.xml.in index ad18156047..04318a7c9d 100644 --- a/interface-definitions/container.xml.in +++ b/interface-definitions/container.xml.in @@ -131,7 +131,7 @@ Add custom environment variables - [-_a-zA-Z0-9]+ + #include Environment variable name must be alphanumeric and can contain hyphen and underscores diff --git a/interface-definitions/include/haproxy/rule-backend.xml.i b/interface-definitions/include/haproxy/rule-backend.xml.i index b2be4fde4d..1df9d5dcfb 100644 --- a/interface-definitions/include/haproxy/rule-backend.xml.i +++ b/interface-definitions/include/haproxy/rule-backend.xml.i @@ -47,7 +47,7 @@ Server name - [-_a-zA-Z0-9]+ + #include Server name must be alphanumeric and can contain hyphen and underscores diff --git a/interface-definitions/include/haproxy/rule-frontend.xml.i b/interface-definitions/include/haproxy/rule-frontend.xml.i index 001ae2d806..aeee1202e7 100644 --- a/interface-definitions/include/haproxy/rule-frontend.xml.i +++ b/interface-definitions/include/haproxy/rule-frontend.xml.i @@ -47,7 +47,7 @@ Backend name - [-_a-zA-Z0-9]+ + #include Server name must be alphanumeric and can contain hyphen and underscores