summaryrefslogtreecommitdiff
path: root/interface-definitions/interfaces-wireguard.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/interfaces-wireguard.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/interfaces-wireguard.xml.in')
-rw-r--r--interface-definitions/interfaces-wireguard.xml.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-definitions/interfaces-wireguard.xml.in b/interface-definitions/interfaces-wireguard.xml.in
index bbe9a5d03..74319f705 100644
--- a/interface-definitions/interfaces-wireguard.xml.in
+++ b/interface-definitions/interfaces-wireguard.xml.in
@@ -75,7 +75,7 @@
<properties>
<help>base64 encoded public key</help>
<constraint>
- <regex>^[0-9a-zA-Z\+/]{43}=$</regex>
+ <regex>[0-9a-zA-Z\+/]{43}=$</regex>
</constraint>
<constraintErrorMessage>Key is not valid 44-character (32-bytes) base64</constraintErrorMessage>
</properties>
@@ -84,7 +84,7 @@
<properties>
<help>base64 encoded preshared key</help>
<constraint>
- <regex>^[0-9a-zA-Z\+/]{43}=$</regex>
+ <regex>[0-9a-zA-Z\+/]{43}=$</regex>
</constraint>
<constraintErrorMessage>Key is not valid 44-character (32-bytes) base64</constraintErrorMessage>
</properties>