From 80ecb1b7aaab47edeb355c3b74a763e940d88179 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 29 Apr 2022 19:51:50 +0200 Subject: xml: T4047: use full string match in the regex validator --- interface-definitions/include/interface/address-ipv4-ipv6-dhcp.xml.i | 2 +- interface-definitions/include/interface/adjust-mss.xml.i | 2 +- interface-definitions/include/interface/description.xml.i | 2 +- interface-definitions/include/interface/parameters-flowlabel.xml.i | 2 +- interface-definitions/include/interface/source-validation.xml.i | 2 +- interface-definitions/include/interface/vif-s.xml.i | 2 +- interface-definitions/include/interface/vif.xml.i | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) (limited to 'interface-definitions/include/interface') diff --git a/interface-definitions/include/interface/address-ipv4-ipv6-dhcp.xml.i b/interface-definitions/include/interface/address-ipv4-ipv6-dhcp.xml.i index 123590c08..b9dd59bea 100644 --- a/interface-definitions/include/interface/address-ipv4-ipv6-dhcp.xml.i +++ b/interface-definitions/include/interface/address-ipv4-ipv6-dhcp.xml.i @@ -23,7 +23,7 @@ - ^(dhcp|dhcpv6)$ + (dhcp|dhcpv6) diff --git a/interface-definitions/include/interface/adjust-mss.xml.i b/interface-definitions/include/interface/adjust-mss.xml.i index 57019f02c..41140ffe1 100644 --- a/interface-definitions/include/interface/adjust-mss.xml.i +++ b/interface-definitions/include/interface/adjust-mss.xml.i @@ -16,7 +16,7 @@ - ^(clamp-mss-to-pmtu)$ + (clamp-mss-to-pmtu) diff --git a/interface-definitions/include/interface/description.xml.i b/interface-definitions/include/interface/description.xml.i index 8579cf7d1..de01d22ca 100644 --- a/interface-definitions/include/interface/description.xml.i +++ b/interface-definitions/include/interface/description.xml.i @@ -3,7 +3,7 @@ Interface specific description - .{1,256}$ + .{1,256} Description too long (limit 256 characters) diff --git a/interface-definitions/include/interface/parameters-flowlabel.xml.i b/interface-definitions/include/interface/parameters-flowlabel.xml.i index bd0d1e070..b2e88215b 100644 --- a/interface-definitions/include/interface/parameters-flowlabel.xml.i +++ b/interface-definitions/include/interface/parameters-flowlabel.xml.i @@ -14,7 +14,7 @@ Tunnel key, or hex value - ^((0x){0,1}(0?[0-9A-Fa-f]{1,5})|inherit)$ + ((0x){0,1}(0?[0-9A-Fa-f]{1,5})|inherit) Must be 'inherit' or a number diff --git a/interface-definitions/include/interface/source-validation.xml.i b/interface-definitions/include/interface/source-validation.xml.i index f38065f4d..fc9a7d376 100644 --- a/interface-definitions/include/interface/source-validation.xml.i +++ b/interface-definitions/include/interface/source-validation.xml.i @@ -18,7 +18,7 @@ No source validation - ^(strict|loose|disable)$ + (strict|loose|disable) diff --git a/interface-definitions/include/interface/vif-s.xml.i b/interface-definitions/include/interface/vif-s.xml.i index 3b305618e..c1af9f9e3 100644 --- a/interface-definitions/include/interface/vif-s.xml.i +++ b/interface-definitions/include/interface/vif-s.xml.i @@ -35,7 +35,7 @@ VLAN-tagged frame (IEEE 802.1q), ethertype 0x8100 - ^(802.1q|802.1ad)$ + (802.1q|802.1ad) Ethertype must be 802.1ad or 802.1q diff --git a/interface-definitions/include/interface/vif.xml.i b/interface-definitions/include/interface/vif.xml.i index 4e7f9b3c2..57ef8d64c 100644 --- a/interface-definitions/include/interface/vif.xml.i +++ b/interface-definitions/include/interface/vif.xml.i @@ -28,7 +28,7 @@ Format for qos mapping, e.g.: '0:1 1:6 7:6' - [:0-7 ]+$ + [:0-7 ]+ QoS mapping should be in the format of '0:7 2:3' with numbers 0-9 @@ -41,7 +41,7 @@ Format for qos mapping, e.g.: '0:1 1:6 7:6' - [:0-7 ]+$ + [:0-7 ]+ QoS mapping should be in the format of '0:7 2:3' with numbers 0-9 -- cgit v1.2.3