r61123 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61122‎ | r61123 | r61124 >
Date:10:48, 16 January 2010
Author:thomasv
Status:ok
Tags:
Comment:
fix regexp : put spaces outside group
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -298,7 +298,7 @@
299299 $text = $rev->getText();
300300 $options = new ParserOptions();
301301 $rtext = $pr_index_parser->preprocess( $text, $index_title, $options );
302 - $text_links_pattern = "/\[\[([^:\|]*?)(\|(.*?)|)\]\]/i";
 302+ $text_links_pattern = "/\[\[\s*([^:\|]*?)\s*(\|(.*?)|)\]\]/i";
303303 preg_match_all( $text_links_pattern, $rtext, $text_links, PREG_PATTERN_ORDER );
304304 return $text_links;
305305 }

Status & tagging log