summaryrefslogtreecommitdiff
path: root/interface-definitions/zone-policy.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-29 19:51:50 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-29 19:51:50 +0200
commit80ecb1b7aaab47edeb355c3b74a763e940d88179 (patch)
treecb0951a838ccfafe7a154cf566461ece0280f0a9 /interface-definitions/zone-policy.xml.in
parent52155b9086fa18083efb601bcc9ba8807f147686 (diff)
downloadvyos-1x-80ecb1b7aaab47edeb355c3b74a763e940d88179.tar.gz
vyos-1x-80ecb1b7aaab47edeb355c3b74a763e940d88179.zip
xml: T4047: use full string match in the regex validator
Diffstat (limited to 'interface-definitions/zone-policy.xml.in')
-rw-r--r--interface-definitions/zone-policy.xml.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/zone-policy.xml.in b/interface-definitions/zone-policy.xml.in
index eac63fa6b..8af0dcfb6 100644
--- a/interface-definitions/zone-policy.xml.in
+++ b/interface-definitions/zone-policy.xml.in
@@ -14,7 +14,7 @@
<description>Zone name</description>
</valueHelp>
<constraint>
- <regex>^[a-zA-Z0-9][\w\-\.]*$</regex>
+ <regex>[a-zA-Z0-9][\w\-\.]*</regex>
</constraint>
</properties>
<children>
@@ -34,7 +34,7 @@
<description>Drop and notify source</description>
</valueHelp>
<constraint>
- <regex>^(drop|reject)$</regex>
+ <regex>(drop|reject)</regex>
</constraint>
</properties>
<defaultValue>drop</defaultValue>
@@ -105,7 +105,7 @@
<description>Drop silently</description>
</valueHelp>
<constraint>
- <regex>^(accept|drop)$</regex>
+ <regex>(accept|drop)</regex>
</constraint>
</properties>
</leafNode>