PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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.