diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-29 19:51:50 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-29 19:51:50 +0200 |
commit | 80ecb1b7aaab47edeb355c3b74a763e940d88179 (patch) | |
tree | cb0951a838ccfafe7a154cf566461ece0280f0a9 /interface-definitions/dns-forwarding.xml.in | |
parent | 52155b9086fa18083efb601bcc9ba8807f147686 (diff) | |
download | vyos-1x-80ecb1b7aaab47edeb355c3b74a763e940d88179.tar.gz vyos-1x-80ecb1b7aaab47edeb355c3b74a763e940d88179.zip |
xml: T4047: use full string match in the regex validator
Diffstat (limited to 'interface-definitions/dns-forwarding.xml.in')
-rw-r--r-- | interface-definitions/dns-forwarding.xml.in | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/interface-definitions/dns-forwarding.xml.in b/interface-definitions/dns-forwarding.xml.in index 08501a4b5..6ead3e199 100644 --- a/interface-definitions/dns-forwarding.xml.in +++ b/interface-definitions/dns-forwarding.xml.in @@ -63,7 +63,7 @@ <description>Full blown DNSSEC validation. Send SERVFAIL to clients on bogus responses.</description> </valueHelp> <constraint> - <regex>^(off|process-no-validate|process|log-fail|validate)$</regex> + <regex>(off|process-no-validate|process|log-fail|validate)</regex> </constraint> </properties> <defaultValue>process-no-validate</defaultValue> @@ -113,7 +113,7 @@ <description>An absolute DNS name</description> </valueHelp> <constraint> - <regex>^[-_a-zA-Z0-9.]{1,63}$</regex> + <regex>[-_a-zA-Z0-9.]{1,63}</regex> </constraint> </properties> <children> @@ -134,7 +134,7 @@ <description>Root record</description> </valueHelp> <constraint> - <regex>^([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)$</regex> + <regex>([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)</regex> </constraint> </properties> <children> @@ -167,7 +167,7 @@ <description>Root record</description> </valueHelp> <constraint> - <regex>^([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)$</regex> + <regex>([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)</regex> </constraint> </properties> <children> @@ -200,7 +200,7 @@ <description>Root record</description> </valueHelp> <constraint> - <regex>^([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)$</regex> + <regex>([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)</regex> </constraint> </properties> <children> @@ -212,7 +212,7 @@ <description>An absolute DNS name</description> </valueHelp> <constraint> - <regex>^[-_a-zA-Z0-9.]{1,63}(?<!\.)$</regex> + <regex>[-_a-zA-Z0-9.]{1,63}(?<!\.)</regex> </constraint> </properties> </leafNode> @@ -232,7 +232,7 @@ <description>Root record</description> </valueHelp> <constraint> - <regex>^([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)$</regex> + <regex>([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)</regex> </constraint> </properties> <children> @@ -244,7 +244,7 @@ <description>An absolute DNS name</description> </valueHelp> <constraint> - <regex>^[-_a-zA-Z0-9.]{1,63}(?<!\.)$</regex> + <regex>[-_a-zA-Z0-9.]{1,63}(?<!\.)</regex> </constraint> </properties> <children> @@ -279,7 +279,7 @@ <description>Root record</description> </valueHelp> <constraint> - <regex>^([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)$</regex> + <regex>([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)</regex> </constraint> </properties> <children> @@ -291,7 +291,7 @@ <description>An absolute DNS name</description> </valueHelp> <constraint> - <regex>^[-_a-zA-Z0-9.]{1,63}(?<!\.)$</regex> + <regex>[-_a-zA-Z0-9.]{1,63}(?<!\.)</regex> </constraint> </properties> </leafNode> @@ -311,7 +311,7 @@ <description>Root record</description> </valueHelp> <constraint> - <regex>^([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)$</regex> + <regex>([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)</regex> </constraint> </properties> <children> @@ -341,7 +341,7 @@ <description>Root record</description> </valueHelp> <constraint> - <regex>^([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)$</regex> + <regex>([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)</regex> </constraint> </properties> <children> @@ -370,7 +370,7 @@ <description>Root record</description> </valueHelp> <constraint> - <regex>^([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)$</regex> + <regex>([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)</regex> </constraint> </properties> <children> @@ -394,7 +394,7 @@ <description>An absolute DNS name</description> </valueHelp> <constraint> - <regex>^[-_a-zA-Z0-9.]{1,63}(?<!\.)$</regex> + <regex>[-_a-zA-Z0-9.]{1,63}(?<!\.)</regex> </constraint> </properties> </leafNode> @@ -454,7 +454,7 @@ <description>Root record</description> </valueHelp> <constraint> - <regex>^([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)$</regex> + <regex>([-_a-zA-Z0-9.]{1,63}|@)(?<!\.)</regex> </constraint> </properties> <children> @@ -523,7 +523,7 @@ <properties> <help>Service type</help> <constraint> - <regex>^[a-zA-Z][a-zA-Z0-9]{0,31}(\+[a-zA-Z][a-zA-Z0-9]{0,31})?$</regex> + <regex>[a-zA-Z][a-zA-Z0-9]{0,31}(\+[a-zA-Z][a-zA-Z0-9]{0,31})?</regex> </constraint> </properties> </leafNode> @@ -540,7 +540,7 @@ <description>An absolute DNS name</description> </valueHelp> <constraint> - <regex>^[-_a-zA-Z0-9.]{1,63}(?<!\.)$</regex> + <regex>[-_a-zA-Z0-9.]{1,63}(?<!\.)</regex> </constraint> </properties> </leafNode> |