The big regex at doMagicLinks deserves being more thoroughly studied.
authorPlatonides <platonides@users.mediawiki.org>
Tue, 31 May 2011 21:52:39 +0000 (21:52 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Tue, 31 May 2011 21:52:39 +0000 (21:52 +0000)
includes/parser/Parser.php

index 5676b41..5983dd9 100644 (file)
@@ -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;
        }