[PATCH] Fix Relax-NG pattern matching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# HG changeset patch
# User john.levon@xxxxxxx
# Date 1216917462 25200
# Node ID 4b889eda816bdb1b3bff21fd8a2a89029813a1a2
# Parent  cd648dc6a9492fe3b703e5ebc7f43d05bb03adeb
Fix Relax-NG pattern matching

Don't use unescaped meta-characters in the patterns.

Signed-off-by: John Levon <john.levon@xxxxxxx>

diff --git a/doc/image.rng b/doc/image.rng
--- a/doc/image.rng
+++ b/doc/image.rng
@@ -236,7 +236,7 @@
   </define>
   <define name='genericName'>
     <data type='string'>
-      <param name="pattern">[A-Za-z0-9_.:/+-]+</param>
+      <param name="pattern">[A-Za-z0-9_\.\+\-:/]+</param>
     </data>
   </define>
   <define name='fileName'>
@@ -246,12 +246,12 @@
   </define>
   <define name='relFilePath'>
     <data type='string'>
-      <param name="pattern">[a-zA-Z0-9_\+\-%.][a-zA-Z0-9_\+\-%./]*</param>
+      <param name="pattern">[a-zA-Z0-9_\.\+\-%][a-zA-Z0-9_\.\+\-%/]*</param>
     </data>
   </define>
   <define name='deviceName'>
     <data type='string'>
-      <param name="pattern">[a-zA-Z0-9_\-:./]+</param>
+      <param name="pattern">[a-zA-Z0-9_\.\-:/]+</param>
     </data>
   </define>
   <define name="verString">

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux