summaryrefslogtreecommitdiff
path: root/interface-definitions/dns-domain-name.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-26 19:30:46 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-26 19:30:48 +0100
commite71592e0f8e6139ce6aebac005c1426c87bd1149 (patch)
tree9f437c7ca0f745371f8937cf0ce233fd23ef368a /interface-definitions/dns-domain-name.xml.in
parent8532f668f70c3c0c3f3a6dc5d6cddcd73b7023e1 (diff)
downloadvyos-1x-e71592e0f8e6139ce6aebac005c1426c87bd1149.tar.gz
vyos-1x-e71592e0f8e6139ce6aebac005c1426c87bd1149.zip
xml: remove leading carrot (^) from regex syntax
... as the carrot is applied automatically when reading in the XML definition. Auto replaced by: $ find interface-definitions -type f | xargs sed -i 's/regex>^/regex>/'
Diffstat (limited to 'interface-definitions/dns-domain-name.xml.in')
-rw-r--r--interface-definitions/dns-domain-name.xml.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/dns-domain-name.xml.in b/interface-definitions/dns-domain-name.xml.in
index c16f0b02a..eeaa5b2c1 100644
--- a/interface-definitions/dns-domain-name.xml.in
+++ b/interface-definitions/dns-domain-name.xml.in
@@ -48,7 +48,7 @@
<properties>
<help>DNS domain completion order</help>
<constraint>
- <regex>^[-a-zA-Z0-9.]+$</regex>
+ <regex>[-a-zA-Z0-9.]+$</regex>
</constraint>
<constraintErrorMessage>Invalid domain name</constraintErrorMessage>
<multi/>
@@ -74,7 +74,7 @@
<properties>
<help>Host name for static address mapping</help>
<constraint>
- <regex>^[A-Za-z0-9][-.A-Za-z0-9]*[A-Za-z0-9]$</regex>
+ <regex>[A-Za-z0-9][-.A-Za-z0-9]*[A-Za-z0-9]$</regex>
</constraint>
<constraintErrorMessage>invalid hostname</constraintErrorMessage>
</properties>
@@ -83,7 +83,7 @@
<properties>
<help>Alias for this address</help>
<constraint>
- <regex>^.{1,63}$</regex>
+ <regex>.{1,63}$</regex>
</constraint>
<constraintErrorMessage>invalid alias hostname, needs to be between 1 and 63 charactes</constraintErrorMessage>
<multi />