Index: trunk/extensions/CodeReview/backend/CodeCommentLinker.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | function link( $text ) { |
13 | 13 | # Catch links like http://www.mediawiki.org/wiki/Special:Code/MediaWiki/44245#c829 |
14 | 14 | # Ended by space or brackets (like those pesky <br /> tags) |
15 | | - $text = preg_replace_callback( '/(\b)(' . wfUrlProtocols() . ')([^ <>]+)(\b)/', array( $this, 'generalLink' ), $text ); |
| 15 | + $text = preg_replace_callback( '/([^\B[])(' . wfUrlProtocols() . ')([^ <>]+)(\b)/', array( $this, 'generalLink' ), $text ); |
16 | 16 | $text = preg_replace_callback( '/\br(\d+)\b/', array( $this, 'messageRevLink' ), $text ); |
17 | 17 | $text = preg_replace_callback( '/\bbug #?(\d+)\b/i', array( $this, 'messageBugLink' ), $text ); |
18 | 18 | return $text; |