From 2fe39c3f4d7408509273c9e2ac400437aba9616f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 20 Apr 2021 21:01:59 +0200 Subject: xml: T3488: when using regex one must use ^ and $ when checking string literals (cherry picked from commit 85d0ae7b434a3ae9f3bd50ad7fee1fcd23b26a26) --- interface-definitions/interfaces-ethernet.xml.in | 4 ++-- 1 file changed, 2 insertions(+), 2 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 bda44d64c..54be3a43b 100644 --- a/interface-definitions/interfaces-ethernet.xml.in +++ b/interface-definitions/interfaces-ethernet.xml.in @@ -47,7 +47,7 @@ Full duplex - (auto|half|full) + ^(auto|half|full)$ duplex must be auto, half or full @@ -154,7 +154,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