The big regex at doMagicLinks deserves being more thoroughly studied.

This commit is contained in:
Platonides 2011-05-31 21:52:39 +00:00
parent 8c206451b2
commit f5f020c3aa

View 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;
}