From: Platonides Date: Tue, 31 May 2011 21:52:39 +0000 (+0000) Subject: The big regex at doMagicLinks deserves being more thoroughly studied. X-Git-Tag: 1.31.0-rc.0~29819 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=f5f020c3aaea41209a1b472d9ad761b2996313d7;p=lhc%2Fweb%2Fwiklou.git The big regex at doMagicLinks deserves being more thoroughly studied. --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 5676b4154f..5983dd994b 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1197,7 +1197,7 @@ class Parser { (?: [0-9] [\ \-]? ){9} # 9 digits with opt. delimiters [0-9Xx] # check digit \b) - )!x', array( &$this, 'magicLinkCallback' ), $text ); + )!xS', array( &$this, 'magicLinkCallback' ), $text ); wfProfileOut( __METHOD__ ); return $text; }