https://bugzilla.wikimedia.org/show_bug.cgi?id=27703

--- Comment #1 from Reedy <s...@reedyboy.net> 2011-02-25 10:40:55 UTC ---
        $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 ) ) {
+        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?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to