[pmwiki-devel] Anchors in includes

Simon nzskiwi at gmail.com
Sun Apr 22 21:58:31 CDT 2012


fantastic, thankyou


On 23 April 2012 09:26, Petko Yotov <5ko at 5ko.fr> wrote:

> On Sunday 08 April 2012 13:11:19 Patrick R. Michaud wrote:
> > The problem appears to be the definition of $npat on line 1266 of
> > pwmiki.php:
> >
> >     $npat = '[[:alpha:]][-\\w*]*';
> >
> > Note that simply adding a dot to the [-\\w]* part of the expression
> > won't work, as a pair of dots are used to indicate ranges.
> > It probably needs to be something that can recognize a single dot
> > in the identifier pattern (i.e., a dot followed by something
> > other than another dot).
>
> Actually, the "#start..#end" pattern is not documented, "#start#end" is.
> The
> easiest way to allow "#a1.2" sections while keeping the "#start..#end"
> working
> is to allow dots, and just strip the possible two trailing dots in the
> first
> section name.
>
> If I don't see some problem with this solution, I'll add it to the next
> release later this month.
>
> > Also, I suspect the '*' immediately the \\w in the original is a typo.
> > And there's an extraneous definition of $npat on line 1311 in the
> > IncludeText() function, probably left over from a previous factoring
> > of text includes.
>
> Both fixed.
>
> Thanks,
> Petko
>
>
> _______________________________________________
> pmwiki-devel mailing list
> pmwiki-devel at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
>



-- 
____
http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20120423/d2a3f069/attachment.html>


More information about the pmwiki-devel mailing list