From 80ecb1b7aaab47edeb355c3b74a763e940d88179 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 29 Apr 2022 19:51:50 +0200 Subject: xml: T4047: use full string match in the regex validator --- interface-definitions/containers.xml.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'interface-definitions/containers.xml.in') diff --git a/interface-definitions/containers.xml.in b/interface-definitions/containers.xml.in index 9cd2b0902..13587711a 100644 --- a/interface-definitions/containers.xml.in +++ b/interface-definitions/containers.xml.in @@ -10,7 +10,7 @@ Container name - ^[-a-zA-Z0-9]+$ + [-a-zA-Z0-9]+ Container name must be alphanumeric and can contain hyphens @@ -52,7 +52,7 @@ Permission to set system clock - ^(net-admin|net-bind-service|net-raw|setpcap|sys-admin|sys-time)$ + (net-admin|net-bind-service|net-raw|setpcap|sys-admin|sys-time) @@ -88,7 +88,7 @@ Add custom environment variables - ^[-_a-zA-Z0-9]+$ + [-_a-zA-Z0-9]+ Environment variable name must be alphanumeric and can contain hyphen and underscores @@ -194,7 +194,7 @@ tcp udp - ^(tcp|udp)$ + (tcp|udp) @@ -219,7 +219,7 @@ Restart containers when they exit, regardless of status, retrying indefinitely - ^(no|on-failure|always)$ + (no|on-failure|always) on-failure -- cgit v1.2.3