[PATCH 1/2] conf: schemas: Allow '.' in schema for CPU flag name

Peter Krempa via Devel posted 2 patches 1 month, 1 week ago
[PATCH 1/2] conf: schemas: Allow '.' in schema for CPU flag name
Posted by Peter Krempa via Devel 1 month, 1 week ago
From: Peter Krempa <pkrempa@redhat.com>

Allow '.' so that CPU features such as:

 <feature name='sse4.1'/>

pass schema validation.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 src/conf/schemas/cputypes.rng | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conf/schemas/cputypes.rng b/src/conf/schemas/cputypes.rng
index 8edf1d14e3..eef3807f1a 100644
--- a/src/conf/schemas/cputypes.rng
+++ b/src/conf/schemas/cputypes.rng
@@ -406,7 +406,7 @@
           <element name="feature">
             <attribute name="name">
               <data type="string">
-                <param name="pattern">[a-zA-Z0-9\-_]+</param>
+                <param name="pattern">[a-zA-Z0-9\-_.]+</param>
               </data>
             </attribute>
             <empty/>
-- 
2.55.0