]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schema: nwfiter: Allow leading/trailing whitespace in 'variable-name-type'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 7 Oct 2020 14:19:42 +0000 (16:19 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 20 Oct 2020 07:05:10 +0000 (09:05 +0200)
The reference string parser tolerates some leading/trailing whitespace
for the reference strings as witnessed by
tests/nwfilterxml2xmlin/iter-test3.xml

Allow them in the schema so that the test passes schema validation.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/schemas/nwfilter.rng

index 64a607e62f03e6580720477ad9896fb99ccd8e8d..a75de7ed3e8cbcce7506ed2db0f598e3e1215013 100644 (file)
 
   <define name="variable-name-type">
     <data type="string">
-      <param name="pattern">$[a-zA-Z0-9_]+(\[[ ]*[@]?[0-9]+[ ]*\])?</param>
+      <param name="pattern">$[ ]*[a-zA-Z0-9_]+(\[[ ]*[@]?[0-9]+[ ]*\])?[ ]*</param>
     </data>
   </define>