r19702 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19701‎ | r19702 | r19703 >
Date:22:20, 31 January 2007
Author:sanbeg
Status:old
Tags:
Comment:
simplify a regex in lsth
Modified paths:
  • /trunk/extensions/LabeledSectionTransclusion/lsth.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LabeledSectionTransclusion/lsth.php
@@ -74,7 +74,7 @@
7575
7676
7777 if (! isset($end_off)) {
78 - $pat = '^(={1,'.$head_len.'})(?!=)\s*.*?\1\s*$';
 78+ $pat = '^(={1,'.$head_len.'})(?!=).*?\1\s*$';
7979 if (preg_match( "/$pat/im", $text, $m, PREG_OFFSET_CAPTURE, $begin_off))
8080 $end_off = $m[0][1]-1;
8181 else

Follow-up revisions

RevisionCommit summaryAuthorDate
r19801Add a mechanism to parserTests when run in --compare or --record mode, to giv...nickj06:59, 6 February 2007