Re: [PATCH] Fix Relax-NG pattern matching

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

 



On Thu, 2008-07-24 at 09:37 -0700, john.levon@xxxxxxx wrote:
> # 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.

Haven't checked myself, but are you sure that in the Relax-NG '.' and
'+' retain their special meaning inside character classes ? In some
regex syntaxes (e.g. extended POSIX) they are treated as ordinary
characters inside a character class - as an example, run
        echo "a.b.c" | sed -r -e 's/[.]/:/g'
        
In any event, the '-' characters need to go at the very end of those
character classes - that's definitely broken.

David


_______________________________________________
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