On Fri, Jun 11, 2004 at 07:32:11PM +0200, Jeroen van Wolffelaar wrote:
> You should be able to also supply a partial error in an override file.
> For extra flexibility, why not accept some kind of wildcards...

I stumbled upon this missing feature last week and would be interested
in finally implementing it. But I'm unsure about the best syntax for
that to not break backwards compatibility.

My current idea would be to only support partial matches if explicetly
requested and only support one wildcard '*' at the beginning and/or the
end of the extra info.

So
tag-name extra-info     ===> /^\Qtag-name\E\s+\Qextra-info\E$/
tag-name extra-info*    ===> /^\Qtag-name\E\s+\Qextra-info\E.*$/
tag-name *extra-info    ===> /^\Qtag-name\E\s+.*?\Qextra-info\E$/
tag-name *extra-info*   ===> /^\Qtag-name\E\s+.*?\Qextra-info\E.*$/

Comment welcome.

Gruesse,
-- 
Frank Lichtenheld <[EMAIL PROTECTED]>
www: http://www.djpig.de/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to