diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-26 19:30:46 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-26 19:30:48 +0100 |
commit | e71592e0f8e6139ce6aebac005c1426c87bd1149 (patch) | |
tree | 9f437c7ca0f745371f8937cf0ce233fd23ef368a /interface-definitions/lldp.xml.in | |
parent | 8532f668f70c3c0c3f3a6dc5d6cddcd73b7023e1 (diff) | |
download | vyos-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/lldp.xml.in')
-rw-r--r-- | interface-definitions/lldp.xml.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/interface-definitions/lldp.xml.in b/interface-definitions/lldp.xml.in index 774c15116..f95ffb4df 100644 --- a/interface-definitions/lldp.xml.in +++ b/interface-definitions/lldp.xml.in @@ -142,7 +142,7 @@ <help>Civic address value for ca-type [REQUIRED]</help> <constraintErrorMessage>ca-value must be less than 256 characters</constraintErrorMessage> <constraint> - <regex>^[A-Za-z0-9\ \-\_\.\,]{0,255}$</regex> + <regex>[A-Za-z0-9\ \-\_\.\,]{0,255}$</regex> </constraint> </properties> </leafNode> @@ -157,7 +157,7 @@ </valueHelp> <constraintErrorMessage>country-code must be 2 characters</constraintErrorMessage> <constraint> - <regex>^[a-zA-Z]{2}$</regex> + <regex>[a-zA-Z]{2}$</regex> </constraint> </properties> </leafNode> @@ -201,7 +201,7 @@ </completionHelp> <constraintErrorMessage>Datum should be WGS84, NAD83, or MLLW</constraintErrorMessage> <constraint> - <regex>^(WGS84|NAD83|MLLW)$</regex> + <regex>(WGS84|NAD83|MLLW)$</regex> </constraint> </properties> </leafNode> @@ -214,7 +214,7 @@ </valueHelp> <constraintErrorMessage>Latitude should be a number followed by S or N</constraintErrorMessage> <constraint> - <regex>^(\d+)(\.\d+)?[nNsS]$</regex> + <regex>(\d+)(\.\d+)?[nNsS]$</regex> </constraint> </properties> </leafNode> @@ -227,7 +227,7 @@ </valueHelp> <constraintErrorMessage>Longiture should be a number followed by E or W</constraintErrorMessage> <constraint> - <regex>^(\d+)(\.\d+)?[eEwW]$</regex> + <regex>(\d+)(\.\d+)?[eEwW]$</regex> </constraint> </properties> </leafNode> |