Re: Tip to devs regarding Changelog and comments in bug system
| From: | Helgi Þormar | Date: | Wed, 10 Nov 2004 03:57:19 +0000 |
| Subject: | Re: Tip to devs regarding Changelog and comments in bug system | ||
| References: | 1 2 | Groups: | php.pear.dev php.pear.webmaster |
| Request: | Send a blank email to pear-dev+get-34281@lists.php.net to get a copy of this message | ||
On Tue, 2004-11-09 at 18:28, TiP wrote:
> Hello Helgi,
>
> HЮ> as people can notice by looking at my latest commit to pearweb, that now
> HЮ> in changelogs and bug system comments, #343 is converted into <a
> href="/bugs/343">>#343</a>
>
> $text = preg_replace('/#([0-9]+)/', '<a
> href="/bugs/\\1">#\\1</a>', $text);
> how about to add
> $text = preg_replace('/bug ([0-9]{2,})/', 'bug <a
> href="/bugs/\\1">#\\1</a>', $text);
> also just in case smb. forget about #
> ?
What you proposed didn't work (the code) but I might look into it later
on.