Fixed regex in doMagicLinks (broken since r15976)
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 12 Aug 2006 06:12:54 +0000 (06:12 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 12 Aug 2006 06:12:54 +0000 (06:12 +0000)
includes/Parser.php

index e41a124..ca08deb 100644 (file)
@@ -950,7 +950,7 @@ class Parser
                wfProfileIn( __METHOD__ );
                $text = preg_replace_callback( 
                        '!(?:                           # Start cases
-                           <a.*?</a>                   # Skip link text
+                           <a.*?</a> |                 # Skip link text
                            <.*?> |                     # Skip stuff inside HTML elements
                            (?:RFC|PMID)\s+([0-9]+) |   # RFC or PMID, capture number as m[1]
                            ISBN\s+([0-9Xx-]+)          # ISBN, capture number as m[2]