r59317 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59316‎ | r59317 | r59318 >
Date:15:26, 21 November 2009
Author:thomasv
Status:ok
Tags:
Comment:
match multiline pattern
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -284,7 +284,7 @@
285285 $attributes = array();
286286 $var_names = explode(" ", wfMsgForContent('proofreadpage_js_attributes') );
287287 for( $i = 0; $i < count($var_names); $i++ ) {
288 - $tag_pattern = "/\n\|" . $var_names[$i] . "=(.*?)\n/i";
 288+ $tag_pattern = "/\n\|" . $var_names[$i] . "=(.*?)\n(\||\}\})/is";
289289 //$var = 'proofreadPage'.$var_names[$i];
290290 $var = strtolower( $var_names[$i] );
291291 if( preg_match( $tag_pattern, $text, $matches ) ) {

Status & tagging log