PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Text » Text_Wiki » Bug #1729

With the new Anchor parsing ColorText is not shown

Details

Submitted2004-06-27 22:43 UTC
Frompaul at kungfoocoder dot org
Assignedpmjones
StatusClosed
PackageText_Wiki
PHP Version4.3.4
Roadmaps(Not assigned)

Comments

[2004-06-27 22:43 UTC] paul at kungfoocoder dot org

Description:
------------
Basically the problem is simply that the URL parsing is done before the ColorTewxt parsing in the default rules list, this means that ##red|red text## is interpreted as a link to the anchor #red|red... this can be easily fixed by moving the ColorText Parser before the URL parser in the rules array.

[2004-06-28 18:43 UTC] paul at kungfoocoder dot org

Well, for my own thoughts, I think that this is a
perfectly acceptable solution. What may also be usefulis
some way to easily automatically generate a list of
overlapping regexes, so that this sort of thing can be
more easily detected, since (as you say) the order of
matching should not be important.