r66368 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66367‎ | r66368 | r66369 >
Date:18:05, 13 May 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Fixed distance query regex
Modified paths:
  • /trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php
@@ -88,7 +88,7 @@
8989 $distance = count( $parts ) > 0 ? trim( array_shift( $parts ) ) : false;
9090
9191 if ( $distance !== false ) {
92 - if ( preg_match( '/^\d+(\.\d+)?(\s.+)\)$/', $distance ) ) {
 92+ if ( preg_match( '/^\d+(\.\d+)?(\s.+)?\)$/', $distance ) ) {
9393 $distance = substr( $distance, 0, -1 );
9494 }
9595 else {

Status & tagging log