We might want to parse and render the syntax 'bug#xxxx'
Example usage: r82784
Version: unspecified
Severity: enhancement
We might want to parse and render the syntax 'bug#xxxx'
Example usage: r82784
Version: unspecified
Severity: enhancement
$text = preg_replace_callback( '/\bbug #?(\d+)\b/i', array( $this, 'messageBugLink' ), $text );
That apparently works in code comments ^
if ( preg_match( '/\b(bug #?(\d+)|\$[we]g[0-9a-z]{3,50})\b/i', $summary ) ) { return true; }
For Code Release Notes ^
if ( preg_match_all( '/\bbug (\d+)\b/', $this->message, $m ) ) {
^ Comments
r82786 adds one for comments. Not sure if it's used anywhere else
+ if ( preg_match_all( '/\bbug #?(\d+)\b/', $this->message, $m ) ) {
So we also need to make the space optional too...
AFAIK, the bug #1234 already worked?