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/system-syslog.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/system-syslog.xml.in')
-rw-r--r-- | interface-definitions/system-syslog.xml.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/interface-definitions/system-syslog.xml.in b/interface-definitions/system-syslog.xml.in index cce79a4c2..2079ec0ea 100644 --- a/interface-definitions/system-syslog.xml.in +++ b/interface-definitions/system-syslog.xml.in @@ -12,7 +12,7 @@ <properties> <help>Logging to specific terminal of given user</help> <constraint> - <regex>^[a-z_][a-z0-9_-]{1,31}[$]?</regex> + <regex>[a-z_][a-z0-9_-]{1,31}[$]?</regex> </constraint> <constraintErrorMessage>illegal characters in user</constraintErrorMessage> <valueHelp> @@ -394,7 +394,7 @@ <properties> <help>Number of saved files (default is 5)</help> <constraint> - <regex>^[0-9]+</regex> + <regex>[0-9]+</regex> </constraint> <constraintErrorMessage>illegal characters in number of files</constraintErrorMessage> </properties> @@ -403,7 +403,7 @@ <properties> <help>Size of log files (in kbytes, default is 256)</help> <constraint> - <regex>^[0-9]+</regex> + <regex>[0-9]+</regex> </constraint> <constraintErrorMessage>illegal characters in size</constraintErrorMessage> </properties> @@ -591,7 +591,7 @@ <properties> <help>Logging to a file</help> <constraint> - <regex>^[a-zA-Z0-9\-_.]{1,255}</regex> + <regex>[a-zA-Z0-9\-_.]{1,255}</regex> </constraint> <constraintErrorMessage>illegal characters in filename or filename longer than 255 characters</constraintErrorMessage> </properties> @@ -605,7 +605,7 @@ <properties> <help>Number of saved files (default is 5)</help> <constraint> - <regex>^[0-9]+</regex> + <regex>[0-9]+</regex> </constraint> <constraintErrorMessage>illegal characters in number of files</constraintErrorMessage> </properties> @@ -614,7 +614,7 @@ <properties> <help>Size of log files (in kbytes, default is 256)</help> <constraint> - <regex>^[0-9]+</regex> + <regex>[0-9]+</regex> </constraint> <constraintErrorMessage>illegal characters in size</constraintErrorMessage> </properties> |