Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -476,7 +476,7 @@ |
477 | 477 | // Update bug references table... |
478 | 478 | $affectedBugs = array(); |
479 | 479 | $m = array(); |
480 | | - if ( preg_match_all( '/\bbug #?(\d+)\b/', $this->message, $m ) ) { |
| 480 | + if ( preg_match_all( '/\bbug ?#?(\d+)\b/', $this->message, $m ) ) { |
481 | 481 | $data = array(); |
482 | 482 | foreach ( $m[1] as $bug ) { |
483 | 483 | $data[] = array( |
Index: trunk/extensions/CodeReview/backend/CodeCommentLinker.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | array( $this, 'generalLink' ), $text ); |
27 | 27 | $text = preg_replace_callback( '/\br(\d+)\b/', |
28 | 28 | array( $this, 'messageRevLink' ), $text ); |
29 | | - $text = preg_replace_callback( '/\bbug #?(\d+)\b/i', |
| 29 | + $text = preg_replace_callback( '/\bbug ?#?(\d+)\b/i', |
30 | 30 | array( $this, 'messageBugLink' ), $text ); |
31 | 31 | return $text; |
32 | 32 | } |
Index: trunk/extensions/CodeReview/ui/CodeReleaseNotes.php |
— | — | @@ -138,7 +138,7 @@ |
139 | 139 | // Quick relevance tests (these *should* be over-inclusive a little if anything) |
140 | 140 | private function isRelevant( $summary, $whole = true ) { |
141 | 141 | # Fixed a bug? Mentioned a config var? |
142 | | - if ( preg_match( '/\b(bug #?(\d+)|\$[we]g[0-9a-z]{3,50})\b/i', $summary ) ) { |
| 142 | + if ( preg_match( '/\b(bug ?#?(\d+)|\$[we]g[0-9a-z]{3,50})\b/i', $summary ) ) { |
143 | 143 | return true; |
144 | 144 | } |
145 | 145 | # Sanity check: summary cannot be *too* short to be useful |