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/interfaces-ethernet.xml.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'interface-definitions/interfaces-ethernet.xml.in') diff --git a/interface-definitions/interfaces-ethernet.xml.in b/interface-definitions/interfaces-ethernet.xml.in index 7fa07e9ec..c821f04b2 100644 --- a/interface-definitions/interfaces-ethernet.xml.in +++ b/interface-definitions/interfaces-ethernet.xml.in @@ -14,7 +14,7 @@ Ethernet interface name - ^((eth|lan)[0-9]+|(eno|ens|enp|enx).+)$ + ((eth|lan)[0-9]+|(eno|ens|enp|enx).+) Invalid Ethernet interface name @@ -52,7 +52,7 @@ Full duplex - ^(auto|half|full)$ + (auto|half|full) duplex must be auto, half or full @@ -159,7 +159,7 @@ 100 Gbit/sec - ^(auto|10|100|1000|2500|5000|10000|25000|40000|50000|100000)$ + (auto|10|100|1000|2500|5000|10000|25000|40000|50000|100000) Speed must be auto, 10, 100, 1000, 2500, 5000, 10000, 25000, 40000, 50000 or 100000 -- cgit v1.2.3