Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -298,7 +298,7 @@ |
299 | 299 | $text = $rev->getText(); |
300 | 300 | $options = new ParserOptions(); |
301 | 301 | $rtext = $pr_index_parser->preprocess( $text, $index_title, $options ); |
302 | | - $text_links_pattern = "/\[\[([^:\|]*?)(\|(.*?)|)\]\]/i"; |
| 302 | + $text_links_pattern = "/\[\[\s*([^:\|]*?)\s*(\|(.*?)|)\]\]/i"; |
303 | 303 | preg_match_all( $text_links_pattern, $rtext, $text_links, PREG_PATTERN_ORDER ); |
304 | 304 | return $text_links; |
305 | 305 | } |