Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -284,7 +284,7 @@ |
285 | 285 | $attributes = array(); |
286 | 286 | $var_names = explode(" ", wfMsgForContent('proofreadpage_js_attributes') ); |
287 | 287 | 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"; |
289 | 289 | //$var = 'proofreadPage'.$var_names[$i]; |
290 | 290 | $var = strtolower( $var_names[$i] ); |
291 | 291 | if( preg_match( $tag_pattern, $text, $matches ) ) { |